66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
206
if (
CurrentContext
!= null && _readAnotherToken)
334
if (
CurrentContext
!= null &&
CurrentContext
.IsEmptyElement)
602
UnknownData data =
CurrentContext
.ContextData as UnknownData;
639
if (
CurrentContext
.IsEmptyElement)
650
if (
CurrentContext
.ContentParserState != ParsingContent.Before)
652
if (
CurrentContext
.IsContentPropertySet)
654
PropertyInfo contentPropertyInfo =
CurrentContext
.ContentPropertyInfo;
662
Type elementType = (Type)
CurrentContext
.ContextDataType;
663
string namespaceUri =
CurrentContext
.NamespaceUri;
1955
if (null ==
CurrentContext
)
1975
elementContextStackData.ContextType =
CurrentContext
.ContextType;
2006
if (
CurrentContext
!= null &&
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary)
2065
if (null !=
CurrentContext
)
2074
if (
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary ||
2075
CurrentContext
.ContextType == ElementContextType.PropertyComplex)
2285
if (
CurrentContext
.ContextType == ElementContextType.Default &&
2286
dependencyObjectType.IsAssignableFrom(
CurrentContext
.ContextDataType))
3647
CurrentContext
.ContextData = elementBaseType;
3650
CurrentContext
.ContextType = ElementContextType.Default;
3680
CurrentContext
.ContextData = elementBaseType;
3719
CurrentContext
.ContextType = ElementContextType.DefTag;
3734
CurrentContext
.ContextType = ElementContextType.Unknown;
3735
CurrentContext
.ContextData = new UnknownData(localName, namespaceURI);
3746
if (_definitionScopeType != null && _definitionScopeType.Equals(
CurrentContext
.ContextData))
3754
if (
CurrentContext
.NeedToWriteEndElement)
3756
Debug.Assert(
CurrentContext
.ContextType == ElementContextType.PropertyComplex ||
3757
CurrentContext
.ContextType == ElementContextType.PropertyIList ||
3758
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary,
3764
switch (
CurrentContext
.ContextType)
4169
CurrentContext
.ContextType = ElementContextType.PropertyComplex;
4170
CurrentContext
.ContextData = propertyType;
4211
CurrentContext
.ContextType = ElementContextType.PropertyIList;
4212
CurrentContext
.ContextData = propertyType.GetElementType();
4233
CurrentContext
.ContextType = ElementContextType.PropertyIDictionary;
4234
CurrentContext
.ContextData = new DictionaryContextData(propertyType);
4253
CurrentContext
.NeedToWriteEndElement = true;
4302
CurrentContext
.ContextType = ElementContextType.PropertyArray;
4304
CurrentContext
.ContextData = propertyType.GetElementType();
4330
CurrentContext
.ContextType = ElementContextType.Default;
4331
Type currentObjectType =
CurrentContext
.ContextDataType;
4359
CurrentContext
.ContextDataType.Name /* Child */));
4421
CurrentContext
.ContextData = currentObjectType;
4422
CurrentContext
.NamespaceUri = namespaceURI;
4424
WriteAttributes(
CurrentContext
.ContextDataType, namespaceURI,
4476
if (ElementContextType.Default !=
CurrentContext
.ContextType)
4480
if (
CurrentContext
.ContentParserState == ParsingContent.During)
4489
Type parentElementType =
CurrentContext
.ContextDataType;
4506
if (!
CurrentContext
.IsContentPropertySet)
4515
string namespaceUri =
CurrentContext
.NamespaceUri;
4534
CurrentContext
.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject;
4535
CurrentContext
.ContentPropertyName = contentPropertyName;
4668
Type objectType =
CurrentContext
.ContextDataType;
4699
Type elementType =
CurrentContext
.ContextDataType;
4709
else if(
CurrentContext
.IsContentPropertySet)
4714
Type contentPropertyType = XamlTypeMapper.GetPropertyType(
CurrentContext
.ContentPropertyInfo);
4758
if(
CurrentContext
.ContentParserState != ParsingContent.During)
4761
CompileContentProperty(
CurrentContext
); // Write Content property information.
5034
CurrentContext
.ChildTagLocalName);
5085
if(
CurrentContext
== null )
5094
ElementContextType parentNodeType =
CurrentContext
.ContextType;
5127
CurrentContext
.ContextData == null ? "?" :
CurrentContext
.ContextData.ToString(),
5694
ElementContextStackData context =
CurrentContext
;
6611
textContext =
CurrentContext
;