66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
206if (CurrentContext != null && _readAnotherToken) 334if (CurrentContext != null && CurrentContext.IsEmptyElement) 602UnknownData data = CurrentContext.ContextData as UnknownData; 639if (CurrentContext.IsEmptyElement) 650if (CurrentContext.ContentParserState != ParsingContent.Before) 652if (CurrentContext.IsContentPropertySet) 654PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 662Type elementType = (Type) CurrentContext.ContextDataType; 663string namespaceUri = CurrentContext.NamespaceUri; 1955if (null == CurrentContext) 1975elementContextStackData.ContextType = CurrentContext.ContextType; 2006if (CurrentContext != null && CurrentContext.ContextType == ElementContextType.PropertyIDictionary) 2065if (null != CurrentContext) 2074if (CurrentContext.ContextType == ElementContextType.PropertyIDictionary || 2075CurrentContext.ContextType == ElementContextType.PropertyComplex) 2285if (CurrentContext.ContextType == ElementContextType.Default && 2286dependencyObjectType.IsAssignableFrom(CurrentContext.ContextDataType)) 3647CurrentContext.ContextData = elementBaseType; 3650CurrentContext.ContextType = ElementContextType.Default; 3680CurrentContext.ContextData = elementBaseType; 3719CurrentContext.ContextType = ElementContextType.DefTag; 3734CurrentContext.ContextType = ElementContextType.Unknown; 3735CurrentContext.ContextData = new UnknownData(localName, namespaceURI); 3746if (_definitionScopeType != null && _definitionScopeType.Equals(CurrentContext.ContextData)) 3754if (CurrentContext.NeedToWriteEndElement) 3756Debug.Assert(CurrentContext.ContextType == ElementContextType.PropertyComplex || 3757CurrentContext.ContextType == ElementContextType.PropertyIList || 3758CurrentContext.ContextType == ElementContextType.PropertyIDictionary, 3764switch (CurrentContext.ContextType) 4169CurrentContext.ContextType = ElementContextType.PropertyComplex; 4170CurrentContext.ContextData = propertyType; 4211CurrentContext.ContextType = ElementContextType.PropertyIList; 4212CurrentContext.ContextData = propertyType.GetElementType(); 4233CurrentContext.ContextType = ElementContextType.PropertyIDictionary; 4234CurrentContext.ContextData = new DictionaryContextData(propertyType); 4253CurrentContext.NeedToWriteEndElement = true; 4302CurrentContext.ContextType = ElementContextType.PropertyArray; 4304CurrentContext.ContextData = propertyType.GetElementType(); 4330CurrentContext.ContextType = ElementContextType.Default; 4331Type currentObjectType = CurrentContext.ContextDataType; 4359CurrentContext.ContextDataType.Name /* Child */)); 4421CurrentContext.ContextData = currentObjectType; 4422CurrentContext.NamespaceUri = namespaceURI; 4424WriteAttributes(CurrentContext.ContextDataType, namespaceURI, 4476if (ElementContextType.Default != CurrentContext.ContextType) 4480if (CurrentContext.ContentParserState == ParsingContent.During) 4489Type parentElementType = CurrentContext.ContextDataType; 4506if (!CurrentContext.IsContentPropertySet) 4515string namespaceUri = CurrentContext.NamespaceUri; 4534CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4535CurrentContext.ContentPropertyName = contentPropertyName; 4668Type objectType = CurrentContext.ContextDataType; 4699Type elementType = CurrentContext.ContextDataType; 4709else if(CurrentContext.IsContentPropertySet) 4714Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4758if(CurrentContext.ContentParserState != ParsingContent.During) 4761CompileContentProperty(CurrentContext); // Write Content property information. 5034CurrentContext.ChildTagLocalName); 5085if( CurrentContext == null ) 5094ElementContextType parentNodeType = CurrentContext.ContextType; 5127CurrentContext.ContextData == null ? "?" : CurrentContext.ContextData.ToString(), 5694ElementContextStackData context = CurrentContext; 6611textContext = CurrentContext;