118 references to Types
PresentationBuildTasks (118)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (18)
897_ccRoot.StyleConnectorFn.PrivateImplementationType = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IStyleConnector]); 981CodeVariableDeclarationStatement cvdsES = new CodeVariableDeclarationStatement(KnownTypes.Types[(int)KnownElements.EventSetter], EVENTSETTER); 991new CodeObjectCreateExpression(KnownTypes.Types[(int)KnownElements.EventSetter], 1015CodeCastExpression 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]); 1160if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1255var iComponentConnector = new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector]); 1719if (_codeContexts.Count > 1 && KnownTypes.Types[(int)KnownElements.INameScope].IsAssignableFrom(cc.ElementType)) 1851Debug.Assert(pis != null && pis.Length == 2 && KnownTypes.Types[(int)KnownElements.DependencyObject].IsAssignableFrom(pis[0].ParameterType)); 1861if (fiEvent == null || fiEvent.FieldType != KnownTypes.Types[(int)KnownElements.RoutedEvent]) 1934KnownTypes.Types[(int)KnownElements.UIElement].IsAssignableFrom(eventTarget) || 1935KnownTypes.Types[(int)KnownElements.ContentElement].IsAssignableFrom(eventTarget)) 2129Type resourceDictionary = KnownTypes.Types[(int)KnownElements.ResourceDictionary]; 2130Type iNameScope = KnownTypes.Types[(int)KnownElements.INameScope]; 2545cmmLC.ImplementationTypes.Add(new CodeTypeReference(KnownTypes.Types[(int)KnownElements.IComponentConnector])); 2611CodeMethodReferenceExpression cmreLoadContent = new CodeMethodReferenceExpression(new CodeTypeReferenceExpression(KnownTypes.Types[(int)KnownElements.Application]), LOADCOMPONENT); 2917if (elementType != null && KnownTypes.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(elementType))
BuildTasks\Ms\Internal\MarkupCompiler\ParserExtension.cs (3)
171KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(memberInfo.DeclaringType)) 367PropertyInfo pi = KnownTypes.Types[(int)KnownElements.Application].GetProperty(localAttribName); 578bool appEvent = KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(xamlClrEventNode.EventMember.DeclaringType);
Framework\System\Windows\Markup\BamlMapTable.cs (7)
120return KnownTypes.Types[-id]; 145Type probeType = KnownTypes.Types[probe]; 338return KnownTypes.Types[(int)tcId]; 362return KnownTypes.Types[(int)converterId]; 1416converterOrSerializerType = KnownTypes.Types[(int)converterOrSerializerTypeId]; 1623else if (type == KnownTypes.Types[(int)KnownElements.DependencyProperty]) 1638return KnownTypes.Types[index];
Framework\System\Windows\Markup\BamlRecords.cs (3)
484return (KnownTypes.Types[(int)KnownElements.IAddChildInternal].IsAssignableFrom( parentObjectType )); 4953|| (KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(propertyMember.GetType())), 4996KnownTypes.Types[(int)KnownElements.DependencyProperty].IsAssignableFrom(PropertyMember.GetType( )) )
Framework\System\Windows\Markup\BamlRecordWriter.cs (9)
308else if (CollectingValues && KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == xamlElementNode.ElementType) 322else if (CollectingValues && KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == xamlElementNode.ElementType) 359KnownTypes.Types[(int)KnownElements.StaticExtension].IsAssignableFrom(xamlElementNode.ElementType) || 360KnownTypes.Types[(int)KnownElements.TypeExtension].IsAssignableFrom(xamlElementNode.ElementType)) 379else 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)
171if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 176else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == extensionType) 181else if (KnownTypes.Types[(int)KnownElements.TemplateBindingExtension] == extensionType) 186else if (KnownTypes.Types[(int)KnownElements.DynamicResourceExtension] == extensionType) 191else if (KnownTypes.Types[(int)KnownElements.StaticResourceExtension] == extensionType) 214if (KnownTypes.Types[(int)KnownElements.TypeExtension] == extensionType) 529if (KnownTypes.Types[(int)KnownElements.TypeExtension] == targetType) 536else if (KnownTypes.Types[(int)KnownElements.StaticExtension] == targetType) 613else if (!KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(targetType))
Framework\System\Windows\Markup\StyleXamlParser.cs (11)
647if (KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType)) 669(xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.Trigger] || 670xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiTrigger] || 671xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.DataTrigger] || 672xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiDataTrigger] || 673xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.EventTrigger])) 678(KnownTypes.Types[(int)KnownElements.SetterBase].IsAssignableFrom(xamlElementStartNode.ElementType))) 708if (xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.EventSetter]) 1245string assemblyName = KnownTypes.Types[(int)KnownElements.EventSetter].Assembly.FullName; 1252KnownTypes.Types[(int)KnownElements.EventSetter].FullName, 1253KnownTypes.Types[(int)KnownElements.EventSetter],
Framework\System\Windows\Markup\TemplateXamlParser.cs (16)
664if (KnownTypes.Types[(int)KnownElements.ControlTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 666_defaultTargetType = KnownTypes.Types[(int)KnownElements.Control]; 668else if (KnownTypes.Types[(int)KnownElements.DataTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 670_defaultTargetType = KnownTypes.Types[(int)KnownElements.ContentPresenter]; 680_templateKeyType = KnownTypes.Types[(int)KnownElements.DataTemplateKey]; 684else if (KnownTypes.Types[(int)KnownElements.ItemsPanelTemplate].IsAssignableFrom(xamlElementStartNode.ElementType)) 686_defaultTargetType = KnownTypes.Types[(int)KnownElements.ItemsPresenter]; 706(xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.Trigger] || 707xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiTrigger] || 708xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.DataTrigger] || 709xamlElementStartNode.ElementType == KnownTypes.Types[(int)KnownElements.MultiDataTrigger] || 710xamlElementStartNode.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)) 1547if (!KnownTypes.Types[(int)KnownElements.DataTrigger].IsAssignableFrom(t))
Framework\System\Windows\Markup\XamlReaderHelper.cs (23)
1917if (KnownTypes.Types[(int)KnownElements.Application].IsAssignableFrom(type) || 1918KnownTypes.Types[(int)KnownElements.ResourceDictionary].IsAssignableFrom(type)) 1924Type attrType = KnownTypes.Types[(int)KnownElements.ContentPropertyAttribute]; 1925Type DOType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1926Type FEType = KnownTypes.Types[(int)KnownElements.FrameworkElement]; 1927Type FCEType = KnownTypes.Types[(int)KnownElements.FrameworkContentElement]; 2301Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 2974KnownTypes.Types[(int)KnownElements.IComponentConnector].IsAssignableFrom(parentType)) 3362if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(objectType) || 3363KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(objectType) || 3364KnownTypes.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType) || 3365KnownTypes.Types[(int)KnownElements.BeginStoryboard].IsAssignableFrom(objectType)) 3390if (KnownTypes.Types[(int)KnownElements.Timeline].IsAssignableFrom(objectType)) 3418Type attrType = KnownTypes.Types[(int)KnownElements.RuntimeNamePropertyAttribute]; 3419Type TimelineType = KnownTypes.Types[(int)KnownElements.Timeline]; 3420Type FEType = KnownTypes.Types[(int)KnownElements.FrameworkElement]; 3421Type FCEType = KnownTypes.Types[(int)KnownElements.FrameworkContentElement]; 3422Type BSBType = KnownTypes.Types[(int)KnownElements.BeginStoryboard]; 3690if (KnownTypes.Types[(int)KnownElements.RoutedEvent].IsAssignableFrom(elementBaseType)) 4382KnownTypes.Types[(int)KnownElements.MarkupExtension].IsAssignableFrom(currentObjectType)) 4656if (!(objectType == KnownTypes.Types[(int)KnownElements.ArrayExtension]) 4898if( attributes[i].Constructor.ReflectedType == KnownTypes.Types[(int)KnownElements.ContentWrapperAttribute] ) 5664Type attrType = KnownTypes.Types[(int)KnownElements.WhitespaceSignificantCollectionAttribute];
Framework\System\Windows\Markup\XamlTypeMapper.cs (16)
1380Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1543Type dependencyObjectType = KnownTypes.Types[(int)KnownElements.DependencyObject]; 1911if (KnownTypes.Types[(int)KnownElements.FrameworkElement].IsAssignableFrom(typeAndSerializer.ObjectType) || 1912KnownTypes.Types[(int)KnownElements.FrameworkContentElement].IsAssignableFrom(typeAndSerializer.ObjectType)) 1914typeAndSerializer.XmlLangProperty = (KnownTypes.Types[(int)KnownElements.FrameworkElement]).GetProperty("Language", 1938KnownTypes.Types[(int)KnownElements.XmlLangPropertyAttribute], 2764if (objectType == KnownTypes.Types[(int)KnownElements.Brush]) 2768else if (objectType == KnownTypes.Types[(int)KnownElements.Geometry] || 2769objectType == KnownTypes.Types[(int)KnownElements.StreamGeometry]) 2778else if (objectType == KnownTypes.Types[(int)KnownElements.Point3DCollection]) 2782else if (objectType == KnownTypes.Types[(int)KnownElements.Vector3DCollection]) 2786else if (objectType == KnownTypes.Types[(int)KnownElements.PointCollection]) 2790else if (objectType == KnownTypes.Types[(int)KnownElements.Int32Collection]) 2805if (objectType == KnownTypes.Types[(int)KnownElements.Style]) 2809else if (KnownTypes.Types[(int)KnownElements.FrameworkTemplate].IsAssignableFrom(objectType)) 3992if (KnownTypes.Types[(int)KnownElements.LineBreak].IsAssignableFrom(type))
Framework\System\Windows\SystemResourceKey.cs (3)
378if ((KnownTypes.Types[(int)KnownElements.MenuItem] == targetType) || 379(KnownTypes.Types[(int)KnownElements.ToolBar] == targetType) || 380(KnownTypes.Types[(int)KnownElements.StatusBar] == targetType))