C# .NET - How can i get WPF UI to windows forms without using wpf

Asked By balaji mogadali on 25-Aug-11 05:09 AM
hi frds

how can i get WPF UI to windows forms without using wpf using c#
Reena Jain replied to balaji mogadali on 25-Aug-11 05:25 AM
Hi,

If you wanna use WPF styles in a Window Form app, its not possible but you can use a WPF Host in your window form app and add your WPF user controls in that and get more or less the view you are looking for...
take a look at here : http://windowsclient.net/learn/video.aspx?v=13252.

Windows forms is not WPF and WPF is not windows forms. You can NOT "style" a winforms application, at least, not easily. You would have to use some kind of "skinning" library. In most cases, your non-UI code from your winforms app can be used in the WPF app. For example, a SOAP web service or WCF service.

You can, in some cases, put a WPF control in your windows form app, and vice versa. it would be like taking your windows form app and putting in ASP.NET. You are talking about 2 different platforms.


Hope this will help you
Cos mos replied to balaji mogadali on 25-Aug-11 05:26 AM
Hi,

For having UI forms similar to WPF you have to use third party DLL's like infragistics

Please refer this link

http://www.infragistics.com/dotnet/netadvantage/winforms.aspx#Overview
dipa ahuja replied to balaji mogadali on 25-Aug-11 07:27 AM
Best way :

Like asp.net there are two toolkit for RICH UI:

http://www.componentfactory.com/
http://www.devcomponents.com/dotnetbar/