126 references to KnownTypes
PresentationBuildTasks (126)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (19)
897
_ccRoot.StyleConnectorFn.PrivateImplementationType = new CodeTypeReference(
KnownTypes
.Types[(int)KnownElements.IStyleConnector]);
981
CodeVariableDeclarationStatement cvdsES = new CodeVariableDeclarationStatement(
KnownTypes
.Types[(int)KnownElements.EventSetter], EVENTSETTER);
991
new CodeObjectCreateExpression(
KnownTypes
.Types[(int)KnownElements.EventSetter],
1015
CodeCastExpression cceTarget = new CodeCastExpression(
KnownTypes
.Types[(int)KnownElements.Style], careTarget);
1097
_ccRoot.CodeClass.BaseTypes.Add(
KnownTypes
.Types[(int)KnownElements.IStyleConnector].FullName);
1129
_ccRoot.HookupFn.PrivateImplementationType = new CodeTypeReference(
KnownTypes
.Types[(int)KnownElements.IComponentConnector]);
1160
if (_codeContexts.Count > 1 &&
KnownTypes
.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType))
1255
var iComponentConnector = new CodeTypeReference(
KnownTypes
.Types[(int)KnownElements.IComponentConnector]);
1352
KnownTypes
.InitializeKnownTypes(XamlTypeMapper.AssemblyPF, XamlTypeMapper.AssemblyPC, XamlTypeMapper.AssemblyWB);
1719
if (_codeContexts.Count > 1 &&
KnownTypes
.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType))
1851
Debug.Assert(pis != null && pis.Length == 2 &&
KnownTypes
.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType));
1861
if (fiEvent == null || fiEvent.FieldType !=
KnownTypes
.Types[(int)KnownElements.RoutedEvent])
1934
KnownTypes
.Types[(int)KnownElements.UIElement].IsAssignableFrom(eventTarget) ||
1935
KnownTypes
.Types[(int)KnownElements.ContentElement].IsAssignableFrom(eventTarget))
2129
Type resourceDictionary =
KnownTypes
.Types[(int)KnownElements.ResourceDictionary];
2130
Type iNameScope =
KnownTypes
.Types[(int)KnownElements.INameScope];
2545
cmmLC.ImplementationTypes.Add(new CodeTypeReference(
KnownTypes
.Types[(int)KnownElements.IComponentConnector]));
2611
CodeMethodReferenceExpression cmreLoadContent = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(
KnownTypes
.Types[(int)KnownElements.Application]), LOADCOMPONENT);
2917
if (elementType != null &&
KnownTypes
.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(elementType))
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (3)
171
KnownTypes
.Types[(int)KnownElements.Application].IsAssignableFrom(memberInfo.DeclaringType))
367
PropertyInfo pi =
KnownTypes
.Types[(int)KnownElements.Application].GetProperty(localAttribName);
578
bool appEvent =
KnownTypes
.Types[(int)KnownElements.Application].IsAssignableFrom(xamlClrEventNode.EventMember.DeclaringType);
Framework\System\Windows\Markup\BamlMapTable.cs (11)
120
return
KnownTypes
.Types[-id];
145
Type probeType =
KnownTypes
.Types[probe];
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];
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];
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( )) )
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]),
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))
Framework\System\Windows\Markup\StyleXamlParser.cs (11)
647
if (
KnownTypes
.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType))
669
(xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.Trigger] ||
670
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.MultiTrigger] ||
671
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.DataTrigger] ||
672
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.MultiDataTrigger] ||
673
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.EventTrigger]))
678
(
KnownTypes
.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType)))
708
if (xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.EventSetter])
1245
string assemblyName =
KnownTypes
.Types[(int)KnownElements.EventSetter].Assembly.FullName;
1252
KnownTypes
.Types[(int)KnownElements.EventSetter].FullName,
1253
KnownTypes
.Types[(int)KnownElements.EventSetter],
Framework\System\Windows\Markup\TemplateXamlParser.cs (16)
664
if (
KnownTypes
.Types[(int)KnownElements.ControlTemplate].IsAssignableFrom(xamlElementStartNode.ElementType))
666
_defaultTargetType =
KnownTypes
.Types[(int)KnownElements.Control];
668
else if (
KnownTypes
.Types[(int)KnownElements.DataTemplate].IsAssignableFrom(xamlElementStartNode.ElementType))
670
_defaultTargetType =
KnownTypes
.Types[(int)KnownElements.ContentPresenter];
680
_templateKeyType =
KnownTypes
.Types[(int)KnownElements.DataTemplateKey];
684
else if (
KnownTypes
.Types[(int)KnownElements.ItemsPanelTemplate].IsAssignableFrom(xamlElementStartNode.ElementType))
686
_defaultTargetType =
KnownTypes
.Types[(int)KnownElements.ItemsPresenter];
706
(xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.Trigger] ||
707
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.MultiTrigger] ||
708
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.DataTrigger] ||
709
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.MultiDataTrigger] ||
710
xamlElementStartNode.ElementType ==
KnownTypes
.Types[(int)KnownElements.EventTrigger]))
715
(
KnownTypes
.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType)))
854
!
KnownTypes
.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(elementType)
856
!
KnownTypes
.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(elementType))
1547
if (!
KnownTypes
.Types[(int)KnownElements.DataTrigger].IsAssignableFrom(t))
Framework\System\Windows\Markup\XamlReaderHelper.cs (26)
1898
contentProperty =
KnownTypes
.GetContentPropertyName(knownElement);
1917
if (
KnownTypes
.Types[(int)KnownElements.Application].IsAssignableFrom(type) ||
1918
KnownTypes
.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(type))
1924
Type attrType =
KnownTypes
.Types[(int)KnownElements.ContentPropertyAttribute];
1925
Type DOType =
KnownTypes
.Types[(int)KnownElements.DependencyObject];
1926
Type FEType =
KnownTypes
.Types[(int)KnownElements.FrameworkElement];
1927
Type FCEType =
KnownTypes
.Types[(int)KnownElements.FrameworkContentElement];
2301
Type dependencyObjectType =
KnownTypes
.Types[(int)KnownElements.DependencyObject];
2974
KnownTypes
.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(parentType))
3362
if (
KnownTypes
.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(objectType) ||
3363
KnownTypes
.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(objectType) ||
3364
KnownTypes
.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType) ||
3365
KnownTypes
.Types[(int)KnownElements.BeginStoryboard].IsAssignableFrom(objectType))
3390
if (
KnownTypes
.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType))
3418
Type attrType =
KnownTypes
.Types[(int)KnownElements.RuntimeNamePropertyAttribute];
3419
Type TimelineType =
KnownTypes
.Types[(int)KnownElements.Timeline];
3420
Type FEType =
KnownTypes
.Types[(int)KnownElements.FrameworkElement];
3421
Type FCEType =
KnownTypes
.Types[(int)KnownElements.FrameworkContentElement];
3422
Type BSBType =
KnownTypes
.Types[(int)KnownElements.BeginStoryboard];
3690
if (
KnownTypes
.Types[(int)KnownElements.RoutedEvent].IsAssignableFrom(elementBaseType))
4382
KnownTypes
.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(currentObjectType))
4656
if (!(objectType ==
KnownTypes
.Types[(int)KnownElements.ArrayExtension])
4792
KnownTypes
.CanCollectionTypeAcceptStrings( (KnownElements) (-collectionTypeID) )
4798
KnownTypes
.CanCollectionTypeAcceptStrings( (KnownElements) (-collectionTypeID) )
4898
if( attributes[i].Constructor.ReflectedType ==
KnownTypes
.Types[(int)KnownElements.ContentWrapperAttribute] )
5664
Type attrType =
KnownTypes
.Types[(int)KnownElements.WhitespaceSignificantCollectionAttribute];
Framework\System\Windows\Markup\XamlTypeMapper.cs (16)
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",
1938
KnownTypes
.Types[(int)KnownElements.XmlLangPropertyAttribute],
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))
3992
if (
KnownTypes
.Types[(int)KnownElements.LineBreak].IsAssignableFrom(type))
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))