XAML2009 includes an
x:Arguments keyword that enables you to specify one or more arguments to pass to a class’s constructor. Consider, for example, the
System.Version class in .NET, which has a default constructor and four parameterized constructors. You could not construct an instance of this class in XAML2006 unless someone provided an appropriate type converter (or unless you were happy with the behavior of the default constructor, which produces a version number of
In XAML2009, you can instantiate this class with its constructor that accepts a single string as follows:
<sys:Version xmlns:sys="clr-namespace:System;assembly=mscorlib" x:Arguments="4.0.21006.0 ...