December 2014
Intermediate to advanced
512 pages
17h 4m
English
In XAML2006, using core .NET data types such as String or Int32 in WPF is awkward due to the need to reference the System namespace from the mscorlib assembly, as seen previously in this chapter:
<sys:Int32 xmlns:sys="clr-namespace:System;assembly=mscorlib">7</sys:Int32>
Similar to the four keywords that enable Windows Store and universal apps to reference some primitive types, XAML2009 enables the same thing for WPF. However, it supports thirteen .NET data types in the XAML language namespace. With a namespace prefix of x, these data types are x:Byte, x:Boolean, x:Int16, x:Int32, x:Int64, x:Single, x:Double, x:Decimal, x:Char, x:String, x:Object, x:Uri, and x:TimeSpan.
Read now
Unlock full access