66 references to CurrentContext
PresentationBuildTasks (66)
Framework\System\Windows\Markup\XamlReaderHelper.cs (66)
229if (CurrentContext != null && _readAnotherToken) 351if (CurrentContext != null && CurrentContext.IsEmptyElement) 619UnknownData data = CurrentContext.ContextData as UnknownData; 652if (CurrentContext.IsEmptyElement) 663if (CurrentContext.ContentParserState != ParsingContent.Before) 665if (CurrentContext.IsContentPropertySet) 667PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 675Type elementType = (Type) CurrentContext.ContextDataType; 676string namespaceUri = CurrentContext.NamespaceUri; 1974if (null == CurrentContext) 1992elementContextStackData.ContextType = CurrentContext.ContextType; 2023if (CurrentContext != null && CurrentContext.ContextType == ElementContextType.PropertyIDictionary) 2082if (null != CurrentContext) 2091if (CurrentContext.ContextType == ElementContextType.PropertyIDictionary || 2092CurrentContext.ContextType == ElementContextType.PropertyComplex) 2302if (CurrentContext.ContextType == ElementContextType.Default && 2303dependencyObjectType.IsAssignableFrom(CurrentContext.ContextDataType)) 3655CurrentContext.ContextData = elementBaseType; 3658CurrentContext.ContextType = ElementContextType.Default; 3688CurrentContext.ContextData = elementBaseType; 3727CurrentContext.ContextType = ElementContextType.DefTag; 3742CurrentContext.ContextType = ElementContextType.Unknown; 3743CurrentContext.ContextData = new UnknownData(localName, namespaceURI); 3754if (_definitionScopeType != null && _definitionScopeType.Equals(CurrentContext.ContextData)) 3762if (CurrentContext.NeedToWriteEndElement) 3764Debug.Assert(CurrentContext.ContextType == ElementContextType.PropertyComplex || 3765CurrentContext.ContextType == ElementContextType.PropertyIList || 3766CurrentContext.ContextType == ElementContextType.PropertyIDictionary, 3772switch (CurrentContext.ContextType) 4178CurrentContext.ContextType = ElementContextType.PropertyComplex; 4179CurrentContext.ContextData = propertyType; 4215CurrentContext.ContextType = ElementContextType.PropertyIList; 4216CurrentContext.ContextData = propertyType.GetElementType(); 4237CurrentContext.ContextType = ElementContextType.PropertyIDictionary; 4238CurrentContext.ContextData = new DictionaryContextData(propertyType); 4257CurrentContext.NeedToWriteEndElement = true; 4306CurrentContext.ContextType = ElementContextType.PropertyArray; 4308CurrentContext.ContextData = propertyType.GetElementType(); 4334CurrentContext.ContextType = ElementContextType.Default; 4335Type currentObjectType = CurrentContext.ContextDataType; 4363CurrentContext.ContextDataType.Name /* Child */)); 4426CurrentContext.ContextData = currentObjectType; 4427CurrentContext.NamespaceUri = namespaceURI; 4429WriteAttributes(CurrentContext.ContextDataType, namespaceURI, 4481if (ElementContextType.Default != CurrentContext.ContextType) 4485if (CurrentContext.ContentParserState == ParsingContent.During) 4494Type parentElementType = CurrentContext.ContextDataType; 4506if (!CurrentContext.IsContentPropertySet) 4515string namespaceUri = CurrentContext.NamespaceUri; 4534CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4535CurrentContext.ContentPropertyName = contentPropertyName; 4655Type objectType = CurrentContext.ContextDataType; 4686Type elementType = CurrentContext.ContextDataType; 4696else if(CurrentContext.IsContentPropertySet) 4701Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4732if(CurrentContext.ContentParserState != ParsingContent.During) 4735CompileContentProperty(CurrentContext); // Write Content property information. 4990CurrentContext.ChildTagLocalName); 5041if( CurrentContext == null ) 5050ElementContextType parentNodeType = CurrentContext.ContextType; 5083CurrentContext.ContextData == null ? "?" : CurrentContext.ContextData.ToString(), 5653ElementContextStackData context = CurrentContext; 6570textContext = CurrentContext;