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