70 references to KnownTypes
PresentationFramework (70)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
806return KnownTypes.GetContentPropertyName(knownElement);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2069KnownElements typeConverterType = System.Windows.Markup.KnownTypes.GetKnownTypeConverterIdForProperty(
System\Windows\Markup\BamlMapTable.cs (28)
86return KnownTypes.CreateKnownElement((KnownElements)(-id)); 98return KnownTypes.Types[-id]; 123Type probeType = KnownTypes.Types[probe]; 213tcId = KnownTypes.GetKnownTypeConverterId((KnownElements)(-idNumber)); 270tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 314KnownElements tcId = KnownTypes.GetKnownTypeConverterId(id); 320return KnownTypes.Types[(int)tcId]; 338KnownElements converterId = KnownTypes.GetKnownTypeConverterIdForProperty(id, propName); 344return KnownTypes.Types[(int)converterId]; 407return KnownTypes.Types[-id]; 471KnownTypes.Types[(int)KnownElements.XamlStyleSerializer]; 483KnownTypes.Types[(int)KnownElements.XamlTemplateSerializer]; 493info.AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id]); 497info.Type = KnownTypes.Types[-id]; 631record.OwnerTypeId = (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); 1331short attributeId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), fieldName); 1398converterOrSerializerType = KnownTypes.Types[(int)converterOrSerializerTypeId]; 1605else if (type == KnownTypes.Types[(int)KnownElements.DependencyProperty]) 1620return KnownTypes.Types[index];
System\Windows\Markup\BamlReader.cs (1)
2369dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId);
System\Windows\Markup\BamlRecordReader.cs (1)
1296contentProperty = KnownTypes.GetCollectionForCPA(parent, (KnownElements)(-elementId));
System\Windows\Markup\BamlRecords.cs (3)
469return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4703|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4746KnownTypes.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)) 791!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 792!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 793!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType)) 1673((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)
1295Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1454Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1821if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1822KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1824typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 2667if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2671else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2672objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2681else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2685else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2689else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2693else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2708if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2712else 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))