66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
207if (CurrentContext != null && _readAnotherToken) 335if (CurrentContext != null && CurrentContext.IsEmptyElement) 603UnknownData data = CurrentContext.ContextData as UnknownData; 640if (CurrentContext.IsEmptyElement) 651if (CurrentContext.ContentParserState != ParsingContent.Before) 653if (CurrentContext.IsContentPropertySet) 655PropertyInfo contentPropertyInfo = CurrentContext.ContentPropertyInfo; 663Type elementType = (Type) CurrentContext.ContextDataType; 664string namespaceUri = CurrentContext.NamespaceUri; 1956if (null == CurrentContext) 1976elementContextStackData.ContextType = CurrentContext.ContextType; 2007if (CurrentContext != null && CurrentContext.ContextType == ElementContextType.PropertyIDictionary) 2066if (null != CurrentContext) 2075if (CurrentContext.ContextType == ElementContextType.PropertyIDictionary || 2076CurrentContext.ContextType == ElementContextType.PropertyComplex) 2286if (CurrentContext.ContextType == ElementContextType.Default && 2287dependencyObjectType.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) 4170CurrentContext.ContextType = ElementContextType.PropertyComplex; 4171CurrentContext.ContextData = propertyType; 4212CurrentContext.ContextType = ElementContextType.PropertyIList; 4213CurrentContext.ContextData = propertyType.GetElementType(); 4234CurrentContext.ContextType = ElementContextType.PropertyIDictionary; 4235CurrentContext.ContextData = new DictionaryContextData(propertyType); 4254CurrentContext.NeedToWriteEndElement = true; 4303CurrentContext.ContextType = ElementContextType.PropertyArray; 4305CurrentContext.ContextData = propertyType.GetElementType(); 4331CurrentContext.ContextType = ElementContextType.Default; 4332Type currentObjectType = CurrentContext.ContextDataType; 4360CurrentContext.ContextDataType.Name /* Child */)); 4423CurrentContext.ContextData = currentObjectType; 4424CurrentContext.NamespaceUri = namespaceURI; 4426WriteAttributes(CurrentContext.ContextDataType, namespaceURI, 4478if (ElementContextType.Default != CurrentContext.ContextType) 4482if (CurrentContext.ContentParserState == ParsingContent.During) 4491Type parentElementType = CurrentContext.ContextDataType; 4508if (!CurrentContext.IsContentPropertySet) 4517string namespaceUri = CurrentContext.NamespaceUri; 4536CurrentContext.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject; 4537CurrentContext.ContentPropertyName = contentPropertyName; 4670Type objectType = CurrentContext.ContextDataType; 4701Type elementType = CurrentContext.ContextDataType; 4711else if(CurrentContext.IsContentPropertySet) 4716Type contentPropertyType = XamlTypeMapper.GetPropertyType(CurrentContext.ContentPropertyInfo); 4760if(CurrentContext.ContentParserState != ParsingContent.During) 4763CompileContentProperty(CurrentContext); // Write Content property information. 5036CurrentContext.ChildTagLocalName); 5087if( CurrentContext == null ) 5096ElementContextType parentNodeType = CurrentContext.ContextType; 5129CurrentContext.ContextData == null ? "?" : CurrentContext.ContextData.ToString(), 5696ElementContextStackData context = CurrentContext; 6613textContext = CurrentContext;