WPF Applications with Visual Studio 2008

In these days of holidays (before starting for my real holiday at the sea) I've spent some of my free time to improve my knowledge about Windows Presentation Foundation. I've to admit that WPF has never attracted me too much (my first impression was that it's too designer-oriented) but this is the future of windows client development so... I'm forced to well undertand it for the near future.

From my first WPF view (during the alpha versions of VS 2008) I've to admit that the last Visual Studio 2008 Beta 2 has lots of improvement around WPF development. Cider (the new WPF application designer) is well integrated into the VS 2008 IDE, the XAML editor has a nice intellisense that works, the designer surface is nice (the snap lines and margin guides helps a lot) and the zoom control is really helpful to focus your attention on the UI parts you've to work with.

I've appreciated a lot the "double view" between the XAML editor and the UI designer: you can edit your customizations directly into the XAML editor and the designer will reflect the modifications (and viceversa).

However, there are not only marvellous things...

I don't like for example that you can't add nested elements directly via the designer. In order to create nested elements, you've to design the control and then manually edit the XAML code in order to insert it in the correct block. Not always so quick and easy...

The same for control alignment or for the "fill to content" feature: you've to manually edit the XAML. Why?

Why there's no support for templates and styles when designing a control?

My conclusion after these days of little "WPF Learning" is that Cider is improved and actually is usable for production, but in order to create powerful and attractive WPF applications, you are forced to use in conjunction with Visual Studio 2008 a tool like Expression Blend.

Maybe because I'm not a graphic lover or maybe because I've never too much understood Flash, but I'm really not in confidence with a tool like Expression Blend. I think it's too much designer-oriented and the idea to have two tools in order to create a Wndows application really doesn't attract me too much.

Unfortunately, the roles separation between a developer and a designer is not always possible (although recommended), so I think that we (developers) will have to become familiar with these two tools for sure...

Sigh...

Technorati Tag: ,

Print | posted on Monday, August 20, 2007 3:02 PM

Comments on this post

# re: WPF Applications with Visual Studio 2008

Requesting Gravatar...
I'm currently working on my first WPF application for 3 weeks. Earlier (in win forms apps) my manager usually sits with me in front of VS and "fixes" the UI. Now we bought him Expression Blend and I must say it's not that bad, but now I must be sure that everything works in designer - which is not that simple.

Main problem we have now is shared Dataset accross whole application. If it's defined as resource in application then Blend sees it sometimes but not always when I create user control (in runtime everything works OK). But if I want shared Dataset defined in some Window and want to use it in UserControl I must define another empty instance of that Dataset in user control XAML file so Blend could properly render DataGrid Columns.

For me this separation of tools just forces me to use some hacks to make it works. I'm new with this technology so maybe I find some way to get this dataset in XAML without using static methods or not needed instances. In winforms world this was not so much problem when in design mode not everything looks perfect.

Another thing that scares me are those statics. There are so many of them in DependencyObject and DependencyProperty areas. Smells like Memory Leak. :-)

Left by SeeR on Aug 20, 2007 10:29 PM

# re: WPF Applications with Visual Studio 2008

Requesting Gravatar...
Shared dataset poblem between the two tools is a good signalling, maybe someone has discovered the same problem. Do you have any WPF application in production?
Glad to know that your boss loves Expression Blend... actually I can't see the same reactions in many ISVs :)
Thanks for your opinion SeeR, share with us your experiences with WPF.
Left by Stefano Demiliani on Aug 21, 2007 2:13 PM

Your comment:

 (will show your gravatar)
 
Please add 3 and 2 and type the answer here: