66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
217if (CurrentContext != null && _readAnotherToken) 345if (CurrentContext != null && CurrentContext.IsEmptyElement) 613UnknownData data = CurrentContext.ContextData as UnknownData; 650if (CurrentContext.IsEmptyElement) 661if (CurrentContext.ContentParserState != ParsingContent.Before) 663if (CurrentContext.IsContentPropertySet) 665PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 673Type elementType = (Type) CurrentContext.ContextDataType; 674string namespaceUri = CurrentContext.NamespaceUri; 1965if (null == CurrentContext) 1983elementContextStackData.ContextType = CurrentContext.ContextType; 2014if (CurrentContext != null && CurrentContext.ContextType == ElementContextType.PropertyIDictionary) 2073if (null != CurrentContext) 2082if (CurrentContext.ContextType == ElementContextType.PropertyIDictionary || 2083CurrentContext.ContextType == ElementContextType.PropertyComplex) 2293if (CurrentContext.ContextType == ElementContextType.Default && 2294dependencyObjectType.IsAssignableFrom(CurrentContext.ContextDataType)) 3654CurrentContext.ContextData = elementBaseType; 3657CurrentContext.ContextType = ElementContextType.Default; 3687CurrentContext.ContextData = elementBaseType; 3726CurrentContext.ContextType = ElementContextType.DefTag; 3741CurrentContext.ContextType = ElementContextType.Unknown; 3742CurrentContext.ContextData = new UnknownData(localName, namespaceURI); 3753if (_definitionScopeType != null && _definitionScopeType.Equals(CurrentContext.ContextData)) 3761if (CurrentContext.NeedToWriteEndElement) 3763Debug.Assert(CurrentContext.ContextType == ElementContextType.PropertyComplex || 3764CurrentContext.ContextType == ElementContextType.PropertyIList || 3765CurrentContext.ContextType == ElementContextType.PropertyIDictionary, 3771switch (CurrentContext.ContextType) 4177CurrentContext.ContextType = ElementContextType.PropertyComplex; 4178CurrentContext.ContextData = propertyType; 4219CurrentContext.ContextType = ElementContextType.PropertyIList; 4220CurrentContext.ContextData = propertyType.GetElementType(); 4241CurrentContext.ContextType = ElementContextType.PropertyIDictionary; 4242CurrentContext.ContextData = new DictionaryContextData(propertyType); 4261CurrentContext.NeedToWriteEndElement = true; 4310CurrentContext.ContextType = ElementContextType.PropertyArray; 4312CurrentContext.ContextData = propertyType.GetElementType(); 4338CurrentContext.ContextType = ElementContextType.Default; 4339Type currentObjectType = CurrentContext.ContextDataType; 4367CurrentContext.ContextDataType.Name /* Child */)); 4430CurrentContext.ContextData = currentObjectType; 4431CurrentContext.NamespaceUri = namespaceURI; 4433WriteAttributes(CurrentContext.ContextDataType, namespaceURI, 4485if (ElementContextType.Default != CurrentContext.ContextType) 4489if (CurrentContext.ContentParserState == ParsingContent.During) 4498Type parentElementType = CurrentContext.ContextDataType; 4515if (!CurrentContext.IsContentPropertySet) 4524string namespaceUri = CurrentContext.NamespaceUri; 4543CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4544CurrentContext.ContentPropertyName = contentPropertyName; 4675Type objectType = CurrentContext.ContextDataType; 4706Type elementType = CurrentContext.ContextDataType; 4716else if(CurrentContext.IsContentPropertySet) 4721Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4765if(CurrentContext.ContentParserState != ParsingContent.During) 4768CompileContentProperty(CurrentContext); // Write Content property information. 5041CurrentContext.ChildTagLocalName); 5092if( CurrentContext == null ) 5101ElementContextType parentNodeType = CurrentContext.ContextType; 5134CurrentContext.ContextData == null ? "?" : CurrentContext.ContextData.ToString(), 5704ElementContextStackData context = CurrentContext; 6621textContext = CurrentContext;