70 references to KnownTypes
PresentationFramework (70)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
781return KnownTypes.GetContentPropertyName(knownElement);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2069KnownElements typeConverterType = System.Windows.Markup.KnownTypes.GetKnownTypeConverterIdForProperty(
System\Windows\Markup\BamlMapTable.cs (28)
82return KnownTypes.CreateKnownElement((KnownElements)(-id)); 94return KnownTypes.Types[-id]; 119Type probeType = KnownTypes.Types[probe]; 209tcId = KnownTypes.GetKnownTypeConverterId((KnownElements)(-idNumber)); 266tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 310KnownElements tcId = KnownTypes.GetKnownTypeConverterId(id); 316return KnownTypes.Types[(int)tcId]; 334KnownElements converterId = KnownTypes.GetKnownTypeConverterIdForProperty(id, propName); 340return KnownTypes.Types[(int)converterId]; 403return KnownTypes.Types[-id]; 467KnownTypes.Types[(int)KnownElements.XamlStyleSerializer]; 479KnownTypes.Types[(int)KnownElements.XamlTemplateSerializer]; 490AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id]) 495info.Type = KnownTypes.Types[-id]; 630OwnerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId) 637DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 662DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 667return KnownTypes.GetKnownClrPropertyNameFromId(knownId); 694KnownElements knownElement = KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 731ownerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 859dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 880dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 905return KnownTypes.GetKnownDependencyPropertyFromId((KnownProperties)(-id)); 971propertyId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), memberName); 1338short 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)
2392dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId);
System\Windows\Markup\BamlRecordReader.cs (1)
1287contentProperty = KnownTypes.GetCollectionForCPA(parent, (KnownElements)(-elementId));
System\Windows\Markup\BamlRecords.cs (3)
463return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4697|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4739KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
System\Windows\Markup\BamlRecordWriter.cs (9)
298else if (CollectingValues && KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType) 312else if (CollectingValues && KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType) 349KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 350KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 368else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 789!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 790!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 791!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType)) 1668((BamlElementStartRecord)valueDeferRecord.Record).TypeId == BamlMapTable.GetKnownTypeIdFromType(KnownTypes.Types[(int)KnownElements.StaticResourceExtension]),
System\Windows\Markup\MarkupExtensionParser.cs (9)
151if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 156else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == extensionType) 161else if (KnownTypes.Types[(int)KnownElements.TemplateBindingExtension] == extensionType) 166else if (KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == extensionType) 171else if (KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == extensionType) 194if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 509if (KnownTypes.Types[(int)KnownElements.TypeExtension] == targetType) 516else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == targetType) 593else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
System\Windows\Markup\XamlTypeMapper.cs (14)
1287Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1448Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1817if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1818KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1820typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 2665if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2669else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2670objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2679else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2683else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2687else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2691else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2706if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2710else 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))