71 references to KnownTypes
PresentationFramework (71)
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (1)
813return KnownTypes.GetContentPropertyName(knownElement);
src\Framework\System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2068KnownElements typeConverterType = System.Windows.Markup.KnownTypes.GetKnownTypeConverterIdForProperty(
src\Framework\System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
14using KnownTypesV3 = System.Windows.Markup.KnownTypes;
src\Framework\System\Windows\Markup\BamlMapTable.cs (28)
108return KnownTypes.CreateKnownElement((KnownElements)(-id)); 120return KnownTypes.Types[-id]; 145Type probeType = KnownTypes.Types[probe]; 231tcId = KnownTypes.GetKnownTypeConverterId((KnownElements)(-idNumber)); 288tc = KnownTypes.CreateKnownElement(typeId) as TypeConverter; 332KnownElements tcId = KnownTypes.GetKnownTypeConverterId(id); 338return KnownTypes.Types[(int)tcId]; 356KnownElements converterId = KnownTypes.GetKnownTypeConverterIdForProperty(id, propName); 362return KnownTypes.Types[(int)converterId]; 425return KnownTypes.Types[-id]; 489KnownTypes.Types[(int)KnownElements.XamlStyleSerializer]; 501KnownTypes.Types[(int)KnownElements.XamlTemplateSerializer]; 511info.AssemblyId = GetAssemblyIdForType(KnownTypes.Types[-id]); 515info.Type = KnownTypes.Types[-id]; 649record.OwnerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 655DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 680DependencyProperty dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 685return KnownTypes.GetKnownClrPropertyNameFromId(knownId); 712KnownElements knownElement = KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 749ownerTypeId = (short)-(short)KnownTypes.GetKnownElementFromKnownCommonProperty(knownId); 877dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 898dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId); 923return KnownTypes.GetKnownDependencyPropertyFromId((KnownProperties)(-id)); 989propertyId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), memberName); 1349short attributeId = (short)-KnownTypes.GetKnownPropertyAttributeId((KnownElements)(-typeId), fieldName); 1416converterOrSerializerType = KnownTypes.Types[(int)converterOrSerializerTypeId]; 1623else if (type == KnownTypes.Types[(int)KnownElements.DependencyProperty]) 1638return KnownTypes.Types[index];
src\Framework\System\Windows\Markup\BamlReader.cs (1)
2403dp = KnownTypes.GetKnownDependencyPropertyFromId(knownId);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
1329contentProperty = KnownTypes.GetCollectionForCPA(parent, (KnownElements)(-elementId));
src\Framework\System\Windows\Markup\BamlRecords.cs (3)
484return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4953|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4996KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (9)
308else if (CollectingValues && KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType) 322else if (CollectingValues && KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType) 359KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 360KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 379else if (_deferLoadingSupport && KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType)) 803!KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 804!KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) && 805!KnownTypes.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType)) 1686((BamlElementStartRecord)valueDeferRecord.Record).TypeId == BamlMapTable.GetKnownTypeIdFromType(KnownTypes.Types[(int)KnownElements.StaticResourceExtension]),
src\Framework\System\Windows\Markup\MarkupExtensionParser.cs (9)
171if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 176else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == extensionType) 181else if (KnownTypes.Types[(int)KnownElements.TemplateBindingExtension] == extensionType) 186else if (KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == extensionType) 191else if (KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == extensionType) 214if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 529if (KnownTypes.Types[(int)KnownElements.TypeExtension] == targetType) 536else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == targetType) 613else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (14)
1380Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1543Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1911if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1912KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1914typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 2764if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2768else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2769objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2778else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2782else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2786else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2790else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2805if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2809else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType))
src\Framework\System\Windows\SystemResourceKey.cs (3)
378if ((KnownTypes.Types[(int)KnownElements.MenuItem] == targetType) || 379(KnownTypes.Types[(int)KnownElements.ToolBar] == targetType) || 380(KnownTypes.Types[(int)KnownElements.StatusBar] == targetType))