views:

40

answers:

3

Could someone post a link to simple tutorial, which describe how to use User Controls, created in Win Forms in WPF aplication's? Sank's a lot.

A: 

Here's One

Google for WindowsFormsHost

Gareth S
A: 

search for "WPF WinForm interop"

Kai Wang
+2  A: 

In a nutshell:

1.Add a reference in your WPF project to System.Windows.Forms and WindowsFormsIntegration 2.Add the namespace in your XAML:

xmlns:WinForms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"

3.Use the WindowsFormsHost tag to surround any WinForms controls you use:

<Grid> <WindowsFormsHost> <WinForms:DataGrid /> </WindowsFormsHost> </Grid>

4.Profit!

Tom Allen