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 style inheritance?

1 Answers  


What kind of documents are supported in wpf?

1 Answers  


What is the most common format for declaring a data binding in markup?

1 Answers  


What is wpf browser application?

1 Answers  


Can you explain the overall architecture of wpf?

1 Answers  


Explain wpf relative binding/ relative resource?

1 Answers  


Can you explain self relative source binding in wpf?

1 Answers  


When should we use static resource over dynamic resource?

1 Answers  


When should we use "x:name" vs "name"?

1 Answers  


What is the inotifypropertychanged interface?

1 Answers  


What are different types of binding modes in WPF?

1 Answers  


what is logical tree in wpf?

1 Answers  


Categories