70 references to KnownTypes
PresentationFramework (70)
MS\Internal\Globalization\BamlTreeUpdater.cs (1)
806
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)
86
return
KnownTypes
.CreateKnownElement((KnownElements)(-id));
98
return
KnownTypes
.Types[-id];
123
Type probeType =
KnownTypes
.Types[probe];
213
tcId =
KnownTypes
.GetKnownTypeConverterId((KnownElements)(-idNumber));
270
tc =
KnownTypes
.CreateKnownElement(typeId) as TypeConverter;
314
KnownElements tcId =
KnownTypes
.GetKnownTypeConverterId(id);
320
return
KnownTypes
.Types[(int)tcId];
338
KnownElements converterId =
KnownTypes
.GetKnownTypeConverterIdForProperty(id, propName);
344
return
KnownTypes
.Types[(int)converterId];
407
return
KnownTypes
.Types[-id];
471
KnownTypes
.Types[(int)KnownElements.XamlStyleSerializer];
483
KnownTypes
.Types[(int)KnownElements.XamlTemplateSerializer];
493
info.AssemblyId = GetAssemblyIdForType(
KnownTypes
.Types[-id]);
497
info.Type =
KnownTypes
.Types[-id];
631
record.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);
1331
short attributeId = (short)-
KnownTypes
.GetKnownPropertyAttributeId((KnownElements)(-typeId), fieldName);
1398
converterOrSerializerType =
KnownTypes
.Types[(int)converterOrSerializerTypeId];
1605
else if (type ==
KnownTypes
.Types[(int)KnownElements.DependencyProperty])
1620
return
KnownTypes
.Types[index];
System\Windows\Markup\BamlReader.cs (1)
2369
dp =
KnownTypes
.GetKnownDependencyPropertyFromId(knownId);
System\Windows\Markup\BamlRecordReader.cs (1)
1296
contentProperty =
KnownTypes
.GetCollectionForCPA(parent, (KnownElements)(-elementId));
System\Windows\Markup\BamlRecords.cs (3)
469
return (
KnownTypes
.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType ));
4703
|| (
KnownTypes
.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())),
4746
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))
791
!
KnownTypes
.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) &&
792
!
KnownTypes
.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlKeyElementNode.ElementType) &&
793
!
KnownTypes
.Types[(int)KnownElements.ResourceKey].IsAssignableFrom(xamlKeyElementNode.ElementType))
1673
((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)
1295
Type dependencyObjectType =
KnownTypes
.Types[(int)KnownElements.DependencyObject];
1454
Type dependencyObjectType =
KnownTypes
.Types[(int)KnownElements.DependencyObject];
1821
if (
KnownTypes
.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) ||
1822
KnownTypes
.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType))
1824
typeAndSerializer.XmlLangProperty = (
KnownTypes
.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language",
2667
if (objectType ==
KnownTypes
.Types[(int)KnownElements.Brush])
2671
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Geometry] ||
2672
objectType ==
KnownTypes
.Types[(int)KnownElements.StreamGeometry])
2681
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Point3DCollection])
2685
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Vector3DCollection])
2689
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.PointCollection])
2693
else if (objectType ==
KnownTypes
.Types[(int)KnownElements.Int32Collection])
2708
if (objectType ==
KnownTypes
.Types[(int)KnownElements.Style])
2712
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))