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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.