70 references to KnownTypes
PresentationFramework (70)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
780return KnownTypes.GetContentPropertyName(knownElement);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2068KnownElements typeConverterType = System.Windows.Markup.KnownTypes.GetKnownTypeConverterIdForProperty(
System\Windows\Markup\BamlMapTable.cs (28)
85return KnownTypes.CreateKnownElement((KnownElements)(-id)); 97return KnownTypes.Types[-id]; 122Type probeType = KnownTypes.Types[probe]; 212tcId = KnownTypes.GetKnownTypeConverterId((KnownElements)(-idNumber)); 269tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 313KnownElements tcId = KnownTypes.GetKnownTypeConverterId(id); 319return KnownTypes.Types[(int)tcId]; 337KnownElements converterId = KnownTypes.GetKnownTypeConverterIdForProperty(id, propName); 343return KnownTypes.Types[(int)converterId]; 404return KnownTypes.Types[-id]; 463KnownTypes.Types[(int)KnownElements.XamlStyleSerializer]; 475KnownTypes.Types[(int)KnownElements.XamlTemplateSerializer]; 486AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id]) 491info.Type = KnownTypes.Types[-id]; 626OwnerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId) 633DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 658DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 663return KnownTypes.GetKnownClrPropertyNameFromId(knownId); 686KnownElements knownElement = KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 723ownerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 847dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 868dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 893return KnownTypes.GetKnownDependencyPropertyFromId((KnownProperties)(-id)); 959propertyId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), memberName); 1324short attributeId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), fieldName); 1393converterOrSerializerType = KnownTypes.Types[(int)converterOrSerializerTypeId]; 1601else if (type == KnownTypes.Types[(int)KnownElements.DependencyProperty]) 1616return KnownTypes.Types[index];
System\Windows\Markup\BamlReader.cs (1)
2385dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId);
System\Windows\Markup\BamlRecordReader.cs (1)
1286contentProperty = KnownTypes.GetCollectionForCPA(parent, (KnownElements)(-elementId));
System\Windows\Markup\BamlRecords.cs (3)
462return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4696|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4738KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
System\Windows\Markup\BamlRecordWriter.cs (9)
297else if (CollectingValues && KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType) 311else if (CollectingValues && KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType) 348KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 349KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 367else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 788!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 789!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 790!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType)) 1667((BamlElementStartRecord)valueDeferRecord.Record).TypeId == BamlMapTable.GetKnownTypeIdFromType(KnownTypes.Types[(int)KnownElements.StaticResourceExtension]),
System\Windows\Markup\MarkupExtensionParser.cs (9)
150if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 155else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == extensionType) 160else if (KnownTypes.Types[(int)KnownElements.TemplateBindingExtension] == extensionType) 165else if (KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == extensionType) 170else if (KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == extensionType) 193if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 508if (KnownTypes.Types[(int)KnownElements.TypeExtension] == targetType) 515else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == targetType) 592else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
System\Windows\Markup\XamlTypeMapper.cs (14)
1286Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1447Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1816if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1817KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1819typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 2664if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2668else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2669objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2678else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2682else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2686else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2690else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2705if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2709else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType))
System\Windows\SystemResourceKey.cs (3)
387if ((KnownTypes.Types[(int)KnownElements.MenuItem] == targetType) || 388(KnownTypes.Types[(int)KnownElements.ToolBar] == targetType) || 389(KnownTypes.Types[(int)KnownElements.StatusBar] == targetType))