Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to add wpf user control in windows form?



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

Post New Answer

More WPF Interview Questions

What is the simplest and most common way to componentize a complex ui?

1 Answers  


Explain WPF UI Automation.

1 Answers   MCN Solutions,


Describe the core elements of WPF architecture?

1 Answers  


What is an attached property?

1 Answers  


Explain wpf relative binding/ relative resource?

1 Answers  


Name the methods present in the dependencyobject?

1 Answers  


How long does it take to learn wpf?

1 Answers  


What are the types of windows in WPF?

1 Answers  


What is a windows presentation foundation application?

1 Answers  


What is the series of window events at startup in wpf?

1 Answers  


What is mean by wpf?

1 Answers  


How to exit a wpf app programmatically?

1 Answers  


Categories