December 2014
Intermediate to advanced
512 pages
17h 4m
English
In XAML2009, type conversion is attempted with x:Key values, so you can successfully add items to a dictionary with nonstring keys without using a markup extension. Here’s an example:
<collections:Dictionary x:TypeArguments="x:Int32, x:String"> <x:String x:Key ="1 " >One</x:String> <x:String x:Key ="2 " >Two</x:String></collections:Dictionary>
Here, collections is assumed to map to the System.Collections.Generic namespace.
Read now
Unlock full access