2.6. XAML 2009

As mentioned earlier in this chapter, WPF 4 introduces a new XAML standard, called XAML 2009. However, WPF doesn't adopt this standard wholeheartedly. If you want to use any of the XAML 2009 refinements today, you need to use loose, uncompiled XAML files, which won't suit the majority of developers.

Even if you decide not to use XAML 2009, it's worth quickly reviewing its new features. That's because XAML 2009 will eventually become the fully integrated, compiled standard in the next version of WPF. The following sections tour through its most important changes, all of which are demonstrated with the sample code for this chapter. Keep in mind that Visual Studio IntelliSense will flag some of these features as design-time mistakes, ...

Get Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.