I was wondering is it possible to create a panel-like control in wpf, and another wpf custom control that will be the child of this panel, all in WinForms application. And then, would it be possible to set the custom control’s size in float?
Also would I be able to rotate that custom control?
Thanks in advance
You will need to use the
System.Windows.Forms.IntegrationNameSpace, more specifically the ElementHost Control, that will allow you to embed a WPF Control in Winforms.This is a quick and simple demonstration of changing the WPF UserControls Child UserControls Size and Location. I will leave the animation to you.
Main Winform Form
UserControl1.xaml
UserControl1.xaml.cs
UserControl2.xaml
UserControl2.xaml.cs