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