71 references to KnownTypes
PresentationFramework (71)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
814
return
KnownTypes
.GetContentPropertyName(knownElement);
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
2071
KnownElements typeConverterType = System.Windows.Markup.
KnownTypes
.GetKnownTypeConverterIdForProperty(
System\Windows\Markup\Baml2006\Baml2006SchemaContext.cs (1)
18
using KnownTypesV3 = System.Windows.Markup.
KnownTypes
;
System\Windows\Markup\BamlMapTable.cs (28)
94
return
KnownTypes
.CreateKnownElement((KnownElements)(-id));
106
return
KnownTypes
.Types[-id];
131
Type probeType =
KnownTypes
.Types[probe];
221
tcId =
KnownTypes
.GetKnownTypeConverterId((KnownElements)(-idNumber));
278
tc =
KnownTypes
.CreateKnownElement(typeId) as TypeConverter;
322
KnownElements tcId =
KnownTypes
.GetKnownTypeConverterId(id);
328
return
KnownTypes
.Types[(int)tcId];
346
KnownElements converterId =
KnownTypes
.GetKnownTypeConverterIdForProperty(id, propName);
352
return
KnownTypes
.Types[(int)converterId];
415
return
KnownTypes
.Types[-id];
479
KnownTypes
.Types[(int)KnownElements.XamlStyleSerializer];
491
KnownTypes
.Types[(int)KnownElements.XamlTemplateSerializer];
501
info.AssemblyId = GetAssemblyIdForType(
KnownTypes
.Types[-id]);
505
info.Type =
KnownTypes
.Types[-id];
639
record.OwnerTypeId = (short)-(short)
KnownTypes
.GetKnownElementFromKnownCommonProperty(knownId);
645
DependencyProperty dp =
KnownTypes
.GetKnownDependencyPropertyFromId(knownId);
670
DependencyProperty dp =
KnownTypes
.GetKnownDependencyPropertyFromId(knownId);
675
return
KnownTypes
.GetKnownClrPropertyNameFromId(knownId);
702
KnownElements knownElement =
KnownTypes
.GetKnownElementFromKnownCommonProperty(knownId);
739
ownerTypeId = (short)-(short)
KnownTypes
.GetKnownElementFromKnownCommonProperty(knownId);
867
dp =
KnownTypes
.GetKnownDependencyPropertyFromId(knownId);
888
dp =
KnownTypes
.GetKnownDependencyPropertyFromId(knownId);
913
return
KnownTypes
.GetKnownDependencyPropertyFromId((KnownProperties)(-id));
979
propertyId = (short)-
KnownTypes
.GetKnownPropertyAttributeId((KnownElements)(-typeId), memberName);
1339
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)
2379
dp =
KnownTypes
.GetKnownDependencyPropertyFromId(knownId);
System\Windows\Markup\BamlRecordReader.cs (1)
1305
contentProperty =
KnownTypes
.GetCollectionForCPA(parent, (KnownElements)(-elementId));
System\Windows\Markup\BamlRecords.cs (3)
475
return (
KnownTypes
.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType ));
4709
|| (
KnownTypes
.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())),
4752
KnownTypes
.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
System\Windows\Markup\BamlRecordWriter.cs (9)
301
else if (CollectingValues &&
KnownTypes
.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType)
315
else if (CollectingValues &&
KnownTypes
.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType)
352
KnownTypes
.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) ||
353
KnownTypes
.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType))
371
else if (_deferLoadingSupport &&
KnownTypes
.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(xamlElementNode.ElementType))
794
!
KnownTypes
.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) &&
795
!
KnownTypes
.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) &&
796
!
KnownTypes
.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType))
1676
((BamlElementStartRecord)valueDeferRecord.Record).TypeId == BamlMapTable.GetKnownTypeIdFromType(
KnownTypes
.Types[(int)KnownElements.StaticResourceExtension]),
System\Windows\Markup\MarkupExtensionParser.cs (9)
158
if (
KnownTypes
.Types[(int)KnownElements.TypeExtension] == extensionType)
163
else if (
KnownTypes
.Types[(int)KnownElements.StaticExtension] == extensionType)
168
else if (
KnownTypes
.Types[(int)KnownElements.TemplateBindingExtension] == extensionType)
173
else if (
KnownTypes
.Types[(int)KnownElements.DynamicResourceExtension] == extensionType)
178
else if (
KnownTypes
.Types[(int)KnownElements.StaticResourceExtension] == extensionType)
201
if (
KnownTypes
.Types[(int)KnownElements.TypeExtension] == extensionType)
516
if (
KnownTypes
.Types[(int)KnownElements.TypeExtension] == targetType)
523
else if (
KnownTypes
.Types[(int)KnownElements.StaticExtension] == targetType)
600
else if (!
KnownTypes
.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
System\Windows\Markup\XamlTypeMapper.cs (14)
1297
Type dependencyObjectType =
KnownTypes
.Types[(int)KnownElements.DependencyObject];
1456
Type dependencyObjectType =
KnownTypes
.Types[(int)KnownElements.DependencyObject];
1823
if (
KnownTypes
.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) ||
1824
KnownTypes
.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType))
1826
typeAndSerializer.XmlLangProperty = (
KnownTypes
.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language",
2669
if (objectType ==
KnownTypes
.Types[(int)KnownElements.Brush])
2673
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Geometry] ||
2674
objectType ==
KnownTypes
.Types[(int)KnownElements.StreamGeometry])
2683
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Point3DCollection])
2687
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Vector3DCollection])
2691
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.PointCollection])
2695
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Int32Collection])
2710
if (objectType ==
KnownTypes
.Types[(int)KnownElements.Style])
2714
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))