|
<wpf:ResourceDictionary
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ioc="clr-namespace:XamlIoc;assembly=XamlIoc"
xmlns:my="clr-namespace:MyLib;assembly=MyLib"
>
<!-- TestGenerics -->
<ioc:ObjectContainer x:Key="myListOfInt">
<ioc:Generic
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:sysGenCol="clr-namespace:System.Collections.Generic;assembly=mscorlib"
ioc:TypeName="sysGenCol:List"
FirstTypeArgument="{x:Type TypeName=sys:Int32}">
<ioc:Generic.PropertyDictionary>
<sys:Int32 x:Key="Capacity">12</sys:Int32>
</ioc:Generic.PropertyDictionary>
</ioc:Generic>
</ioc:ObjectContainer>
<ioc:ObjectContainer x:Key="myListOfIntPopulated">
<ioc:GenericCollection
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:sysGenCol="clr-namespace:System.Collections.Generic;assembly=mscorlib"
ioc:TypeName="sysGenCol:List"
FirstTypeArgument="{x:Type TypeName=sys:Int32}">
<ioc:Generic.PropertyDictionary>
<sys:Int32 x:Key="Capacity">12</sys:Int32>
</ioc:Generic.PropertyDictionary>
<sys:Int32>7</sys:Int32>
<sys:Int32>42</sys:Int32>
<sys:Int32>13</sys:Int32>
</ioc:GenericCollection>
</ioc:ObjectContainer>
</wpf:ResourceDictionary>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Vincent-Philippe is a Senior Solution Architect working in Montreal (Quebec, Canada).
His main interests are Windows Azure, .NET Enterprise suite (e.g. SharePoint 2013, Biztalk Server 2010) & the new .NET 4.5 platforms.