71 references to KnownTypes
PresentationFramework (71)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
814return KnownTypes.GetContentPropertyName(knownElement);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2071KnownElements typeConverterType = System.Windows.Markup.KnownTypes.GetKnownTypeConverterIdForProperty(
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
18using KnownTypesV3 = System.Windows.Markup.KnownTypes;
System\Windows\Markup\BamlMapTable.cs (28)
94return KnownTypes.CreateKnownElement((KnownElements)(-id)); 106return KnownTypes.Types[-id]; 131Type probeType = KnownTypes.Types[probe]; 221tcId = KnownTypes.GetKnownTypeConverterId((KnownElements)(-idNumber)); 278tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 322KnownElements tcId = KnownTypes.GetKnownTypeConverterId(id); 328return KnownTypes.Types[(int)tcId]; 346KnownElements converterId = KnownTypes.GetKnownTypeConverterIdForProperty(id, propName); 352return KnownTypes.Types[(int)converterId]; 415return KnownTypes.Types[-id]; 479KnownTypes.Types[(int)KnownElements.XamlStyleSerializer]; 491KnownTypes.Types[(int)KnownElements.XamlTemplateSerializer]; 501info.AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id]); 505info.Type = KnownTypes.Types[-id]; 639record.OwnerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 645DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 670DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 675return KnownTypes.GetKnownClrPropertyNameFromId(knownId); 702KnownElements knownElement = KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 739ownerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 867dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 888dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 913return KnownTypes.GetKnownDependencyPropertyFromId((KnownProperties)(-id)); 979propertyId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), memberName); 1339short attributeId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), fieldName); 1406converterOrSerializerType = KnownTypes.Types[(int)converterOrSerializerTypeId]; 1613else if (type == KnownTypes.Types[(int)KnownElements.DependencyProperty]) 1628return KnownTypes.Types[index];
System\Windows\Markup\BamlReader.cs (1)
2379dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId);
System\Windows\Markup\BamlRecordReader.cs (1)
1305contentProperty = KnownTypes.GetCollectionForCPA(parent, (KnownElements)(-elementId));
System\Windows\Markup\BamlRecords.cs (3)
475return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4709|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4752KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
System\Windows\Markup\BamlRecordWriter.cs (9)
301else if (CollectingValues && KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType) 315else if (CollectingValues && KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType) 352KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 353KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 371else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 794!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 795!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 796!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType)) 1676((BamlElementStartRecord)valueDeferRecord.Record).TypeId == BamlMapTable.GetKnownTypeIdFromType(KnownTypes.Types[(int)KnownElements.StaticResourceExtension]),
System\Windows\Markup\MarkupExtensionParser.cs (9)
158if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 163else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == extensionType) 168else if (KnownTypes.Types[(int)KnownElements.TemplateBindingExtension] == extensionType) 173else if (KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == extensionType) 178else if (KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == extensionType) 201if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 516if (KnownTypes.Types[(int)KnownElements.TypeExtension] == targetType) 523else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == targetType) 600else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
System\Windows\Markup\XamlTypeMapper.cs (14)
1297Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1456Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1823if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1824KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1826typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 2669if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2673else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2674objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2683else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2687else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2691else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2695else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2710if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2714else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType))
System\Windows\SystemResourceKey.cs (3)
388if ((KnownTypes.Types[(int)KnownElements.MenuItem] == targetType) || 389(KnownTypes.Types[(int)KnownElements.ToolBar] == targetType) || 390(KnownTypes.Types[(int)KnownElements.StatusBar] == targetType))