170 references to XamlCollectionKind
PresentationFramework (67)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (57)
1976CollectionKind = XamlCollectionKind.Collection 2271CollectionKind = XamlCollectionKind.Collection 2502CollectionKind = XamlCollectionKind.Collection 2645CollectionKind = XamlCollectionKind.Collection 2872CollectionKind = XamlCollectionKind.Collection 3518CollectionKind = XamlCollectionKind.Collection 4127CollectionKind = XamlCollectionKind.Collection 4195CollectionKind = XamlCollectionKind.Collection 4236CollectionKind = XamlCollectionKind.Collection 5049CollectionKind = XamlCollectionKind.Collection 5104CollectionKind = XamlCollectionKind.Collection 5305CollectionKind = XamlCollectionKind.Collection 5886CollectionKind = XamlCollectionKind.Collection 6118CollectionKind = XamlCollectionKind.Collection 6194CollectionKind = XamlCollectionKind.Collection 6248CollectionKind = XamlCollectionKind.Collection 6377CollectionKind = XamlCollectionKind.Collection 6409CollectionKind = XamlCollectionKind.Collection 7205CollectionKind = XamlCollectionKind.Collection 7363CollectionKind = XamlCollectionKind.Collection 7560CollectionKind = XamlCollectionKind.Collection 7746CollectionKind = XamlCollectionKind.Dictionary 7902CollectionKind = XamlCollectionKind.Collection 8119CollectionKind = XamlCollectionKind.Collection 8175CollectionKind = XamlCollectionKind.Collection 8362CollectionKind = XamlCollectionKind.Collection 8416CollectionKind = XamlCollectionKind.Collection 8521CollectionKind = XamlCollectionKind.Collection 8589CollectionKind = XamlCollectionKind.Collection 8922CollectionKind = XamlCollectionKind.Collection 9117CollectionKind = XamlCollectionKind.Collection 9301CollectionKind = XamlCollectionKind.Dictionary 9456CollectionKind = XamlCollectionKind.Collection 9912CollectionKind = XamlCollectionKind.Collection 10041CollectionKind = XamlCollectionKind.Collection 10685CollectionKind = XamlCollectionKind.Collection 10701CollectionKind = XamlCollectionKind.Collection 11109CollectionKind = XamlCollectionKind.Collection 11152CollectionKind = XamlCollectionKind.Collection 11300CollectionKind = XamlCollectionKind.Collection 11433CollectionKind = XamlCollectionKind.Collection 11631CollectionKind = XamlCollectionKind.Collection 11661CollectionKind = XamlCollectionKind.Collection 12159CollectionKind = XamlCollectionKind.Collection 12213CollectionKind = XamlCollectionKind.Collection 12274CollectionKind = XamlCollectionKind.Collection 12328CollectionKind = XamlCollectionKind.Collection 12841CollectionKind = XamlCollectionKind.Collection 12855CollectionKind = XamlCollectionKind.Collection 12869CollectionKind = XamlCollectionKind.Collection 12955CollectionKind = XamlCollectionKind.Collection 12970CollectionKind = XamlCollectionKind.Collection 13074CollectionKind = XamlCollectionKind.Collection 13088CollectionKind = XamlCollectionKind.Collection 13103CollectionKind = XamlCollectionKind.Collection 13117CollectionKind = XamlCollectionKind.Collection 13131CollectionKind = XamlCollectionKind.Collection
System\Windows\Markup\Baml2006\WpfKnownType.cs (3)
38private XamlCollectionKind _collectionKind; 181protected override XamlCollectionKind LookupCollectionKind() 186public XamlCollectionKind CollectionKind
System\Windows\Markup\Baml2006\WpfXamlType.cs (7)
478protected override XamlCollectionKind LookupCollectionKind() 484return XamlCollectionKind.Array; 488return XamlCollectionKind.Dictionary; 492return XamlCollectionKind.Collection; 498return XamlCollectionKind.Collection; 505return XamlCollectionKind.Collection; 507return XamlCollectionKind.None;
PresentationFramework.Aero (6)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (6)
112CollectionKind = XamlCollectionKind.None 129CollectionKind = XamlCollectionKind.None 169CollectionKind = XamlCollectionKind.None 183CollectionKind = XamlCollectionKind.None 205CollectionKind = XamlCollectionKind.None 225CollectionKind = XamlCollectionKind.None
PresentationFramework.Aero2 (6)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (6)
112CollectionKind = XamlCollectionKind.None 129CollectionKind = XamlCollectionKind.None 169CollectionKind = XamlCollectionKind.None 183CollectionKind = XamlCollectionKind.None 205CollectionKind = XamlCollectionKind.None 225CollectionKind = XamlCollectionKind.None
PresentationFramework.AeroLite (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (3)
169CollectionKind = XamlCollectionKind.None 183CollectionKind = XamlCollectionKind.None 225CollectionKind = XamlCollectionKind.None
PresentationFramework.Classic (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (3)
77CollectionKind = XamlCollectionKind.None 91CollectionKind = XamlCollectionKind.None 225CollectionKind = XamlCollectionKind.None
PresentationFramework.Luna (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (5)
112CollectionKind = XamlCollectionKind.None 129CollectionKind = XamlCollectionKind.None 169CollectionKind = XamlCollectionKind.None 183CollectionKind = XamlCollectionKind.None 225CollectionKind = XamlCollectionKind.None
PresentationFramework.Royale (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\KnownTypeHelper.cs (5)
112CollectionKind = XamlCollectionKind.None 129CollectionKind = XamlCollectionKind.None 169CollectionKind = XamlCollectionKind.None 183CollectionKind = XamlCollectionKind.None 225CollectionKind = XamlCollectionKind.None
System.Xaml (34)
System\Xaml\Schema\CollectionReflector.cs (13)
29internal static XamlCollectionKind LookupCollectionKind(Type type, out MethodInfo addMethod) 36return XamlCollectionKind.Array; 44return XamlCollectionKind.None; 50return XamlCollectionKind.Dictionary; 55return XamlCollectionKind.Dictionary; 60return XamlCollectionKind.Collection; 65return XamlCollectionKind.Collection; 71return XamlCollectionKind.Dictionary; 76return XamlCollectionKind.Collection; 79return XamlCollectionKind.None; 82internal static MethodInfo LookupAddMethod(Type type, XamlCollectionKind collectionKind) 87case XamlCollectionKind.Collection: 95case XamlCollectionKind.Dictionary:
System\Xaml\Schema\TypeReflector.cs (5)
18private const XamlCollectionKind XamlCollectionKindInvalid = (XamlCollectionKind)byte.MaxValue; 43private XamlCollectionKind _collectionKind; 83_collectionKind = XamlCollectionKind.None; 198internal XamlCollectionKind CollectionKind
System\Xaml\XamlType.cs (16)
177public bool IsArray { get { return GetCollectionKind() == XamlCollectionKind.Array; } } 178public bool IsCollection { get { return GetCollectionKind() == XamlCollectionKind.Collection; } } 180public bool IsDictionary { get { return GetCollectionKind() == XamlCollectionKind.Dictionary; } } 215if (GetCollectionKind() == XamlCollectionKind.None) 234XamlCollectionKind collectionKind = GetCollectionKind(); 235if (collectionKind != XamlCollectionKind.Collection && 236collectionKind != XamlCollectionKind.Dictionary) 506XamlCollectionKind collectionKind = GetCollectionKind(); 508(collectionKind == XamlCollectionKind.Collection) || 509(collectionKind == XamlCollectionKind.Dictionary) || 580XamlCollectionKind collectionKind = GetCollectionKind(); 592if (GetCollectionKind() == XamlCollectionKind.None || UnderlyingType is null) 763protected virtual XamlCollectionKind LookupCollectionKind() 767return (BaseType is not null) ? BaseType.GetCollectionKind() : XamlCollectionKind.None; 771XamlCollectionKind result = CollectionReflector.LookupCollectionKind(UnderlyingType, out addMethod); 1510private XamlCollectionKind GetCollectionKind()
System.Xaml.Tests (41)
Common\CustomXamlType.cs (2)
57public Optional<XamlCollectionKind> LookupCollectionKindResult { get; set; } 58protected override XamlCollectionKind LookupCollectionKind()
Common\SubXamlType.cs (1)
33public XamlCollectionKind LookupCollectionKindEntry() => LookupCollectionKind();
System\Xaml\XamlTypeTests.cs (38)
1741yield return new object?[] { new SubXamlType("namespace", "name", null, new XamlSchemaContext()), XamlCollectionKind.None }; 1742yield return new object?[] { new SubXamlType("name", null, new XamlSchemaContext()), XamlCollectionKind.None }; 1743yield return new object?[] { new NoUnderlyingOrBaseType(), XamlCollectionKind.None }; 1745yield return new object?[] { new SubXamlType(typeof(int), new XamlSchemaContext()), XamlCollectionKind.None }; 1746yield return new object?[] { new SubXamlType(typeof(int[]), new XamlSchemaContext()), XamlCollectionKind.Array }; 1747yield return new object?[] { new SubXamlType(typeof(IEnumerable), new XamlSchemaContext()), XamlCollectionKind.None }; 1748yield return new object?[] { new SubXamlType(typeof(IEnumerable<int>), new XamlSchemaContext()), XamlCollectionKind.None }; 1749yield return new object?[] { new SubXamlType(typeof(ICollection), new XamlSchemaContext()), XamlCollectionKind.None }; 1750yield return new object?[] { new SubXamlType(typeof(ICollection<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1751yield return new object?[] { new SubXamlType(typeof(IList), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1752yield return new object?[] { new SubXamlType(typeof(IList<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1753yield return new object?[] { new SubXamlType(typeof(IDictionary), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1754yield return new object?[] { new SubXamlType(typeof(IDictionary<int, int>), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1755yield return new object?[] { new SubXamlType(typeof(Collection<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1756yield return new object?[] { new SubXamlType(typeof(List<int>), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1757yield return new object?[] { new SubXamlType(typeof(GetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1758yield return new object?[] { new SubXamlType(typeof(InvalidReturnGetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.None }; 1759yield return new object?[] { new SubXamlType(typeof(InvalidParametersGetEnumeratorClass), new XamlSchemaContext()), XamlCollectionKind.None }; 1760yield return new object?[] { new SubXamlType(typeof(MultiICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1761yield return new object?[] { new SubXamlType(typeof(ICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1762yield return new object?[] { new SubXamlType(typeof(InternalICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1763yield return new object?[] { new SubXamlType(typeof(MoreThanOneICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.Collection }; 1764yield return new object?[] { new SubXamlType(typeof(PrivateICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1765yield return new object?[] { new SubXamlType(typeof(ProtectedICollectionImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1766yield return new object?[] { new SubXamlType(typeof(Dictionary<int, int>), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1767yield return new object?[] { new SubXamlType(typeof(IDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1768yield return new object?[] { new SubXamlType(typeof(InternalIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1769yield return new object?[] { new SubXamlType(typeof(MoreThanOneIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.Dictionary }; 1770yield return new object?[] { new SubXamlType(typeof(PrivateIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1771yield return new object?[] { new SubXamlType(typeof(ProtectedIDictionaryImplementer), new XamlSchemaContext()), XamlCollectionKind.None }; 1783LookupCollectionKindResult = (XamlCollectionKind)(XamlCollectionKind.Array + 1) 1785(XamlCollectionKind)(XamlCollectionKind.Array + 1) 1791public void LookupCollectionKind_Invoke_ReturnsExpected(SubXamlType type, XamlCollectionKind expected) 1794Assert.Equal(expected == XamlCollectionKind.Array, type.IsArray); 1795Assert.Equal(expected == XamlCollectionKind.Collection, type.IsCollection); 1796Assert.Equal(expected == XamlCollectionKind.Dictionary, type.IsDictionary);