66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
206if (CurrentContext != null && _readAnotherToken) 331if (CurrentContext != null && CurrentContext.IsEmptyElement) 599UnknownData data = CurrentContext.ContextData as UnknownData; 636if (CurrentContext.IsEmptyElement) 647if (CurrentContext.ContentParserState != ParsingContent.Before) 649if (CurrentContext.IsContentPropertySet) 651PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 659Type elementType = (Type) CurrentContext.ContextDataType; 660string namespaceUri = CurrentContext.NamespaceUri; 1952if (null == CurrentContext) 1972elementContextStackData.ContextType = CurrentContext.ContextType; 2003if (CurrentContext != null && CurrentContext.ContextType == ElementContextType.PropertyIDictionary) 2062if (null != CurrentContext) 2071if (CurrentContext.ContextType == ElementContextType.PropertyIDictionary || 2072CurrentContext.ContextType == ElementContextType.PropertyComplex) 2282if (CurrentContext.ContextType == ElementContextType.Default && 2283dependencyObjectType.IsAssignableFrom(CurrentContext.ContextDataType)) 3644CurrentContext.ContextData = elementBaseType; 3647CurrentContext.ContextType = ElementContextType.Default; 3677CurrentContext.ContextData = elementBaseType; 3716CurrentContext.ContextType = ElementContextType.DefTag; 3731CurrentContext.ContextType = ElementContextType.Unknown; 3732CurrentContext.ContextData = new UnknownData(localName, namespaceURI); 3743if (_definitionScopeType != null && _definitionScopeType.Equals(CurrentContext.ContextData)) 3751if (CurrentContext.NeedToWriteEndElement) 3753Debug.Assert(CurrentContext.ContextType == ElementContextType.PropertyComplex || 3754CurrentContext.ContextType == ElementContextType.PropertyIList || 3755CurrentContext.ContextType == ElementContextType.PropertyIDictionary, 3761switch (CurrentContext.ContextType) 4166CurrentContext.ContextType = ElementContextType.PropertyComplex; 4167CurrentContext.ContextData = propertyType; 4208CurrentContext.ContextType = ElementContextType.PropertyIList; 4209CurrentContext.ContextData = propertyType.GetElementType(); 4230CurrentContext.ContextType = ElementContextType.PropertyIDictionary; 4231CurrentContext.ContextData = new DictionaryContextData(propertyType); 4250CurrentContext.NeedToWriteEndElement = true; 4299CurrentContext.ContextType = ElementContextType.PropertyArray; 4301CurrentContext.ContextData = propertyType.GetElementType(); 4327CurrentContext.ContextType = ElementContextType.Default; 4328Type currentObjectType = CurrentContext.ContextDataType; 4356CurrentContext.ContextDataType.Name /* Child */)); 4418CurrentContext.ContextData = currentObjectType; 4419CurrentContext.NamespaceUri = namespaceURI; 4421WriteAttributes(CurrentContext.ContextDataType, namespaceURI, 4473if (ElementContextType.Default != CurrentContext.ContextType) 4477if (CurrentContext.ContentParserState == ParsingContent.During) 4486Type parentElementType = CurrentContext.ContextDataType; 4503if (!CurrentContext.IsContentPropertySet) 4512string namespaceUri = CurrentContext.NamespaceUri; 4531CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4532CurrentContext.ContentPropertyName = contentPropertyName; 4665Type objectType = CurrentContext.ContextDataType; 4696Type elementType = CurrentContext.ContextDataType; 4706else if(CurrentContext.IsContentPropertySet) 4711Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4755if(CurrentContext.ContentParserState != ParsingContent.During) 4758CompileContentProperty(CurrentContext); // Write Content property information. 5031CurrentContext.ChildTagLocalName); 5082if( CurrentContext == null ) 5091ElementContextType parentNodeType = CurrentContext.ContextType; 5124CurrentContext.ContextData == null ? "?" : CurrentContext.ContextData.ToString(), 5691ElementContextStackData context = CurrentContext; 6608textContext = CurrentContext;