Could someone post a link to simple tutorial, which describe how to use User Controls, created in Win Forms in WPF aplication’s?
Thank’s a lot.
Could someone post a link to simple tutorial, which describe how to use User
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In a nutshell:
1.Add a reference in your WPF project
to
System.Windows.FormsandWindowsFormsIntegration2.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!