none
WinForm application and WPF DLL RRS feed

  • Question

  • My application is build by WinForm.

    I want to make a chatting window as a user control/separate DLL.

    BTW, WPF is easier to make baloon or other effect.

    But I'm not sure if WinForm can call WPF DLL.

    Is it possible?


    Tuesday, June 9, 2020 2:40 AM

Answers

  • My application is build by WinForm.

    I want to make a chatting window as a user control/separate DLL.

    BTW, WPF is easier to make baloon or other effect.

    But I'm not sure if WinForm can call WPF DLL.

    Is it possible?


    A WPF project  is another form of a Windows desktop project that makes an programname.exe file. A classlib project creates a DLL that can be hosted by a  WPF or Windows form project.
    • Marked as answer by Jeff0803 Tuesday, June 9, 2020 3:20 AM
    Tuesday, June 9, 2020 3:12 AM
  • I want to create user control with WPF(XAML) and use from WinForm. Isn't it possible?


    Just use ElementHost Class

    to embed WPF controls in Winforms (I already posted samples with XAML)




    • Edited by Castorix31 Tuesday, June 9, 2020 8:21 AM
    • Marked as answer by Jeff0803 Thursday, June 11, 2020 6:39 AM
    Tuesday, June 9, 2020 8:20 AM

All replies

  • My application is build by WinForm.

    I want to make a chatting window as a user control/separate DLL.

    BTW, WPF is easier to make baloon or other effect.

    But I'm not sure if WinForm can call WPF DLL.

    Is it possible?


    A WPF project  is another form of a Windows desktop project that makes an programname.exe file. A classlib project creates a DLL that can be hosted by a  WPF or Windows form project.
    • Marked as answer by Jeff0803 Tuesday, June 9, 2020 3:20 AM
    Tuesday, June 9, 2020 3:12 AM
  • I want to create user control with WPF(XAML) and use from WinForm. Isn't it possible?


    • Edited by Jeff0803 Tuesday, June 9, 2020 6:35 AM
    Tuesday, June 9, 2020 6:34 AM
  • I want to create user control with WPF(XAML) and use from WinForm. Isn't it possible?


    Just use ElementHost Class

    to embed WPF controls in Winforms (I already posted samples with XAML)




    • Edited by Castorix31 Tuesday, June 9, 2020 8:21 AM
    • Marked as answer by Jeff0803 Thursday, June 11, 2020 6:39 AM
    Tuesday, June 9, 2020 8:20 AM