66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
211if (CurrentContext != null && _readAnotherToken) 339if (CurrentContext != null && CurrentContext.IsEmptyElement) 607UnknownData data = CurrentContext.ContextData as UnknownData; 644if (CurrentContext.IsEmptyElement) 655if (CurrentContext.ContentParserState != ParsingContent.Before) 657if (CurrentContext.IsContentPropertySet) 659PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 667Type elementType = (Type) CurrentContext.ContextDataType; 668string namespaceUri = CurrentContext.NamespaceUri; 1959if (null == CurrentContext) 1977elementContextStackData.ContextType = CurrentContext.ContextType; 2008if (CurrentContext != null && CurrentContext.ContextType == ElementContextType.PropertyIDictionary) 2067if (null != CurrentContext) 2076if (CurrentContext.ContextType == ElementContextType.PropertyIDictionary || 2077CurrentContext.ContextType == ElementContextType.PropertyComplex) 2287if (CurrentContext.ContextType == ElementContextType.Default && 2288dependencyObjectType.IsAssignableFrom(CurrentContext.ContextDataType)) 3648CurrentContext.ContextData = elementBaseType; 3651CurrentContext.ContextType = ElementContextType.Default; 3681CurrentContext.ContextData = elementBaseType; 3720CurrentContext.ContextType = ElementContextType.DefTag; 3735CurrentContext.ContextType = ElementContextType.Unknown; 3736CurrentContext.ContextData = new UnknownData(localName, namespaceURI); 3747if (_definitionScopeType != null && _definitionScopeType.Equals(CurrentContext.ContextData)) 3755if (CurrentContext.NeedToWriteEndElement) 3757Debug.Assert(CurrentContext.ContextType == ElementContextType.PropertyComplex || 3758CurrentContext.ContextType == ElementContextType.PropertyIList || 3759CurrentContext.ContextType == ElementContextType.PropertyIDictionary, 3765switch (CurrentContext.ContextType) 4171CurrentContext.ContextType = ElementContextType.PropertyComplex; 4172CurrentContext.ContextData = propertyType; 4213CurrentContext.ContextType = ElementContextType.PropertyIList; 4214CurrentContext.ContextData = propertyType.GetElementType(); 4235CurrentContext.ContextType = ElementContextType.PropertyIDictionary; 4236CurrentContext.ContextData = new DictionaryContextData(propertyType); 4255CurrentContext.NeedToWriteEndElement = true; 4304CurrentContext.ContextType = ElementContextType.PropertyArray; 4306CurrentContext.ContextData = propertyType.GetElementType(); 4332CurrentContext.ContextType = ElementContextType.Default; 4333Type currentObjectType = CurrentContext.ContextDataType; 4361CurrentContext.ContextDataType.Name /* Child */)); 4424CurrentContext.ContextData = currentObjectType; 4425CurrentContext.NamespaceUri = namespaceURI; 4427WriteAttributes(CurrentContext.ContextDataType, namespaceURI, 4479if (ElementContextType.Default != CurrentContext.ContextType) 4483if (CurrentContext.ContentParserState == ParsingContent.During) 4492Type parentElementType = CurrentContext.ContextDataType; 4509if (!CurrentContext.IsContentPropertySet) 4518string namespaceUri = CurrentContext.NamespaceUri; 4537CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4538CurrentContext.ContentPropertyName = contentPropertyName; 4669Type objectType = CurrentContext.ContextDataType; 4700Type elementType = CurrentContext.ContextDataType; 4710else if(CurrentContext.IsContentPropertySet) 4715Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4759if(CurrentContext.ContentParserState != ParsingContent.During) 4762CompileContentProperty(CurrentContext); // Write Content property information. 5035CurrentContext.ChildTagLocalName); 5086if( CurrentContext == null ) 5095ElementContextType parentNodeType = CurrentContext.ContextType; 5128CurrentContext.ContextData == null ? "?" : CurrentContext.ContextData.ToString(), 5698ElementContextStackData context = CurrentContext; 6615textContext = CurrentContext;