How to add simple C# user control to WPF project ?
-
I have some user control that i wrote in simple C# winform. I want to add it into WPF Window. How can i do it ? Thanks.
Probably this is not possible. I never tried. The reason behind is, WPF UI is designed using XAML code, so if you want to use it as XAML code it will not work. In the other hand, from the code behind I am not sure. But I think, it will not work.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
-
Probably this is not possible. I never tried. The reason behind is, WPF UI is designed using XAML code, so if you want to use it as XAML code it will not work. In the other hand, from the code behind I am not sure. But I think, it will not work.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
-
Woh that's great. I was not aware of it. Actually I never worked with WinForm. Thanks for sharing the link.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
-
Woh that's great. I was not aware of it. Actually I never worked with WinForm. Thanks for sharing the link.
Don't forget to Click on [Vote] and [Good Answer] on the posts that helped you.
Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets | Silverlight Tutorial
-
I have some user control that i wrote in simple C# winform. I want to add it into WPF Window. How can i do it ? Thanks.
-
I have some user control that i wrote in simple C# winform. I want to add it into WPF Window. How can i do it ? Thanks.
Hi Yanshof, You can do this by using the WindowsFormHost