How to add wpf user control in windows form?
Answer / Pratibha Kumari
To use WPF UserControl in a Windows Form, you need to host WPF in Windows Forms using ElementHost. Here's an example:
```csharp
// Create an instance of your WPF UserControl
MyWpfUserControl wpfUserControl = new MyWpfUserControl();
// Add the WPF UserControl to the Windows Form's ElementHost
this.elementHost1.Child = wpfUserControl;
```
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the simplest and most common way to componentize a complex ui?
Explain WPF UI Automation.
Describe the core elements of WPF architecture?
What is an attached property?
Explain wpf relative binding/ relative resource?
Name the methods present in the dependencyobject?
How long does it take to learn wpf?
What are the types of windows in WPF?
What is a windows presentation foundation application?
What is the series of window events at startup in wpf?
What is mean by wpf?
How to exit a wpf app programmatically?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)