Very new to xaml. Is it possible to place a window form inside a WPF window. I realize that winform controls can be used , but I'm talking about the whole form being placed in the WPF window. Thank you.
Printable View
Very new to xaml. Is it possible to place a window form inside a WPF window. I realize that winform controls can be used , but I'm talking about the whole form being placed in the WPF window. Thank you.
It seems an odd thing to do but a form is a control too so you can use it like any other control. You'd have to add it to the container at run time and you should set its TopLevel property to False.
That said, WPF is not Modern/Metro. You can publish XAML apps to the Store but they are not WPF. If this is genuinely a WPF app then this is the wrong forum for this thread and if it is a Store app then it's not WPF and you won't be able to load a Windows Form.
Thank you for the timely response. It is a WTP.
So this is the code for a textbox.
<WindowsFormsHost Margin="0,23,0.4,-23.2">
<wf:TextBox x:Name="textbox1" Text="Hello World"/>
</WindowsFormsHost>
What would you use for a whole form?