Does XAML has a version?

2.1k views Asked by At

WPF 4.0 is a buzzword these days which is the latest version of WPF, I want to know what is the current version of XAML? And, what was the previous version of XAML as well as WPF?

2

There are 2 answers

2
itowlson On BEST ANSWER

Rob Relyea of the XAML team has referred to the XAML implementation in .NET 4 as "XAML 2009" (e.g. here). I don't think XAML in .NET 3.x had a version -- everyone just called it XAML (and it had two implementations, one for WPF and one for WF).

However I understand that in .NET 4.0 WPF will still be using its own XAML implementation for most things, rather than moving wholesale to the new common XAML implementation.

EDIT: Added citation supplied by Kent Boogaart.

0
Doug Ferguson On

One might expect the version of XAML to be encoded in the namespace, however both VS 2008 and VS 2010 Beta 2 apply the same namespaces to XAML files:

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

A loose xaml file reader would have no way of knowing which version of xaml was targeted.

In VS 2010 Beta 2 you can choose to target WPF 3.0, WPF 3.5 or WPF 4.0.

It appears that the same version of XAML may work for all the different versions of WPF as long as the object types encoded are present in that version.