none
WinForms versus WPF RRS feed

  • Question

  • What is the future of WinForms with the advent of WPF?

    I'm about to write a new utility. It will be nothing flashy. Just a standard application with rich text fields, button, checkboxes, dialog boxes etc. WinForms is ideal, but I'm concerned that I might be using a deprecated technology.

     

    Regards

    Martin

    Friday, March 23, 2007 10:35 AM

All replies

  • Hi Martin,

    Here's a post from the Windows Presentation Foundation forum that might have some good background info and a few resources:

    WPF has a good inter-op story with Windows Forms, so it is possible to have a WPF app that hosts WinForms controls (say date picker). Conversely, it is also possible to have a WinForms app host WPF controls (say, a flow document for better readability and automatic hyphenation, re-flow and re-pagination).

    As to WPF app flavors, the two available options are: a conventional standalone application and a browser-hosted application. I think user experience and features dictate the choice. If you users care deeply about being able to seamlessly navigate from other browser content (say corporate portal or dashboard) to the app, without having to deal with confirmation messages, etc., then XBAPs would be a good choice. You should understand however, that by default, the XBAP runs inside a security sandbox so it cannot do impactful things to the end user's machine such as access local files. Given this, a standalone WPF app with full trust privileges may be a good choice if impactful actions are to be supported. You can complement that with ClickOnce such that the app is published to a network share (you mentioned IT didn't want to deal with web servers) and users launch it from there for the first time. The first deployment creates Shell presence for you app via shortcuts in the Start menu and an entry in the Add/Remove Programs list. You can update the app bits on the network share on your own schedule and ClickOnce ensures that subsequent deployments get updates based on your business needs. Pardon me if you are aware of a lot of what I just said. If not, there's sufficient pointers in there to look at the MSDN library for more details.

    In order to develop a WPF app, you need Visual Studio 2005 + VS Extensions for WPF (CTP) or the new Visual Studio "Orcas" (CTP). See http://msdn2.microsoft.com/en-us/vstudio/aa700831.aspx. In addition you can use Expression Blend, a WPF app design tool targeted at creative professionals.



    Ashish Shetty, Program Manager, Microsoft | http://nerddawg.blogspot.com

     

    So that you get your specific question answered as quickly as possible, I'm going to move your question over to http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=119&SiteID=1.

     

    thanks,

    -brenda (ISV Buddy Team)

    Tuesday, March 27, 2007 8:53 PM
    Moderator