How to Frustrate Me Less…

28 06 2007

Rob Relyea posted a reply to my “What’s Hot and What’s Not” post asking:

We’d love feedback on how to frustrate you less…”

I appreciate Rob asking the question. I feel the WPF team and growing community seem to be doing a pretty good job at reducing the frustration levels. One of my biggest frustrations (which is also common with many new technologies) was succinctly expressed (albeit tongue-in-cheek) by Kevin Moore:

“In Windows Forms, there are two ways to do everything: a good way and a bad way. In WPF, there are ten ways to do everything: two that are amazing, 3 that are good, 1 that is bad, and 4 that suck.”

It’s distinguishing the 2 amazing solutions which is so challenging. So how do we get there?

The first way is by example. Production quality applications, with source code, like Vertigo’s Family.Show are fantastic learning tools. It would be impossible to produce many of these, however I’d love to see a WPF LOB application which focuses on common data entry processes.

Near-production level samples such as Kevin’s Bag-O-Tricks also make up some of the most useful resources I’ve used to reduce frustration.

What I’d love to see is some Open Source applications written in WPF. I am sure these will come with time. The gathering of like-minded people will produce an eco-system of best practices, innovative UI’s, and sample code.

I have had a few issues with MSDN help files. If you navigate to help files like IValueConverter.Convert, the example code seems to be missing. (Disclaimer: I haven’t looked deep into this issue – I’m not sure if it affects other help files). Also, I have a problem with my installed MSDN Library that came with Orcas Beta 1. This problem has been description here, and here; but this issue is understandable – Orcas is beta software.

Other than that, the continued support on the MSDN Forums goes a long way to resolving those niggling problems one may be having.

How else do we find those 2 amazing solutions? I’m not exactly sure at this point..

What has helped me to date?

Blogs, blogs, and more blogs. There is a wealth of information out there in blog-land. Tapping into this source is well worth it.

I’ve always learned by two methods: 1) looking at existing resources with a view to teach it to others; and 2) finding out the ‘Why?’. People (usually bloggers or MSDN forum responders) who have a thorough understanding of the technology often have the answers to ‘Why?’, and consequently have helped me with a number of “Ah Ha!” moments.

These days, I don’t purchase many technical books (although I do have a Safari subscription). However, Adam Nathan’s Windows Presentation Foundation Unleashed and Chris Anderson’s Essential Windows Presentation Foundation are spectacular books; Adam’s book is packed with pragmatic advice to help you on the path to WPF “goodness”; while Chris Anderson gives unique insights into the architectural decisions behind the technology – which is invaluable.

What I hope to do via this blog is add some of my knowledge to the base that is growing on the web. Stay tuned for my first set of articles..  





XAML Not Compiling?

17 06 2007

Are your XAML files not being compiled when you press F5 in Visual Studio? If so, read on… 

This weekend I managed to get Visual Studio Orcas 2008 Beta 1 installed on a Vista VPC (It only took 4 attempts for a total of 24GB downloaded – ouch! Don’t even get me started on how the MSDN help doesn’t work!).

Recently I’ve been building a WPF application whom’s sole purpose was for me to learn WPF. I decided to keep on with that project with Orcas. However, I’ve learnt a lot since I first started this WPF in Visual Studio 2005, so I created a new solution and built up some of the app. This way, I could implement all the stuff I’d learnt across the entire application.

I ran into troubles when I included some of the VS2005 XAML files into the project. Whenever I changed the pure XAML and ran the solution, the changes were not added to the binary. Now it doesn’t take long to build this app, so I wasn’t realizing that it wasn’t building at all when I pressed F5.

So after some experimentation, I found that I was missing an entry for one of the properties of XAML file. The highlighted section shows what to check:

XAML_FileProperties

After I added the MSBuild:Compile directive to the “Custom Tool” property, everything worked as it should!

HTH!

 P.S. Apart from my MSDN help problem, Visual Studio Orcas 2008 Beta 1 runs much better than I expected. I hope this is a sign of things to come!