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