My Application is developed using WinForms. Is it possible to host the WPF DataGrid
, Button
, ListBox
, ComboBox
etc in WinForms User Controls?
Yes you can, both Windows Forms within a WPF application, and WPF controls within Windows Forms.
XAML format is for use with WPF/Silverlight. Windows Forms uses only . cs files for the definition of UI elements. So, the answer is no : you cannot add an XAML file in a WinForms project as is.
Yes, it's possible using the ElementHost
control in Winforms and hosting WPF content inside of it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With