I am new to .NET world and I have little experience of winforms. I want to know whether it is possible to mix WPF with Winforms. I mean can i use WPF controls in traditional windows forms application and are there any compatibility issues? Any reference to a good tutorial would be appriciated.
WinForms won't be deprecated until Win32 is ... which could be quite sometime! WPF on the other hand has few direct dependencies on Win32 so could potentially form the basis of a "fresh start" UI layer on a future version of windows.
So, the answer is no : you cannot add an XAML file in a WinForms project as is. You have to create a new System.
http://www.codeproject.com/Articles/739902/How-to-Easily-Host-WPF-Control-inside-Windows-Form
You can add the control to your toolbox and add it to your form.
Add a reference to WindowsFormsIntegration
and add an ElementHost
to you form.
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