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