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