-2

Possible Duplicate:
Convert XAML WPF Window to WinForm

I have a wpf project and I would like to convert the project to a windows forms project. Are there any tools are available to do this?

Community
  • 1
  • 1
Praveen Kumar
  • 1,576
  • 8
  • 31
  • 47
  • 3
    There is no tool/automated way to do this. Check this link : http://stackoverflow.com/questions/5008082/convert-xaml-wpf-window-to-winform – Ravi Y Dec 21 '12 at 06:21

2 Answers2

1

If you want to use WPF controls in Winforms, there is an other way:

a control for WinForms that allows you to use a WPF control in WinForms. It is called ElementHost

Emond
  • 50,210
  • 11
  • 84
  • 115
0

This is not possible since the complete Markup and Design Language XAML differes completly from the way WinForms makes its markup. Also the .NET WPF Framework contains lots of unique Classes behaviors and functionalities, they are also totally different.

Anyways: Why would you try to convert a WPF project back to WinForms? ;)

Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
  • i want use some controls that are in wpf project in windowsforms application,that controls are not available in windowsforms application. – Praveen Kumar Dec 21 '12 at 07:02
  • 2
    There is a control for WinForms that allows you to use a WPF control in WinForms. It is called ElementHost: http://msdn.microsoft.com/en-us/library/system.windows.forms.integration.elementhost.aspx – Emond Dec 21 '12 at 07:03
  • k..i wil send my project to u.can u tel , whatever controls that i used in wpf project is can be used in windows form application? – Praveen Kumar Dec 21 '12 at 07:12
  • I can give no guarrantees but in general you should be able to use any WPF control. Just read the documentation and try it. – Emond Dec 21 '12 at 07:38
  • maybe because mono STILL doesn't support WPF at all and at least somewhat supports winforms. – Wyatt Ward May 23 '15 at 01:15