66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
206
if (
CurrentContext
!= null && _readAnotherToken)
331
if (
CurrentContext
!= null &&
CurrentContext
.IsEmptyElement)
599
UnknownData data =
CurrentContext
.ContextData as UnknownData;
636
if (
CurrentContext
.IsEmptyElement)
647
if (
CurrentContext
.ContentParserState != ParsingContent.Before)
649
if (
CurrentContext
.IsContentPropertySet)
651
PropertyInfo contentPropertyInfo =
CurrentContext
.ContentPropertyInfo;
659
Type elementType = (Type)
CurrentContext
.ContextDataType;
660
string namespaceUri =
CurrentContext
.NamespaceUri;
1952
if (null ==
CurrentContext
)
1972
elementContextStackData.ContextType =
CurrentContext
.ContextType;
2003
if (
CurrentContext
!= null &&
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary)
2062
if (null !=
CurrentContext
)
2071
if (
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary ||
2072
CurrentContext
.ContextType == ElementContextType.PropertyComplex)
2282
if (
CurrentContext
.ContextType == ElementContextType.Default &&
2283
dependencyObjectType.IsAssignableFrom(
CurrentContext
.ContextDataType))
3644
CurrentContext
.ContextData = elementBaseType;
3647
CurrentContext
.ContextType = ElementContextType.Default;
3677
CurrentContext
.ContextData = elementBaseType;
3716
CurrentContext
.ContextType = ElementContextType.DefTag;
3731
CurrentContext
.ContextType = ElementContextType.Unknown;
3732
CurrentContext
.ContextData = new UnknownData(localName, namespaceURI);
3743
if (_definitionScopeType != null && _definitionScopeType.Equals(
CurrentContext
.ContextData))
3751
if (
CurrentContext
.NeedToWriteEndElement)
3753
Debug.Assert(
CurrentContext
.ContextType == ElementContextType.PropertyComplex ||
3754
CurrentContext
.ContextType == ElementContextType.PropertyIList ||
3755
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary,
3761
switch (
CurrentContext
.ContextType)
4166
CurrentContext
.ContextType = ElementContextType.PropertyComplex;
4167
CurrentContext
.ContextData = propertyType;
4208
CurrentContext
.ContextType = ElementContextType.PropertyIList;
4209
CurrentContext
.ContextData = propertyType.GetElementType();
4230
CurrentContext
.ContextType = ElementContextType.PropertyIDictionary;
4231
CurrentContext
.ContextData = new DictionaryContextData(propertyType);
4250
CurrentContext
.NeedToWriteEndElement = true;
4299
CurrentContext
.ContextType = ElementContextType.PropertyArray;
4301
CurrentContext
.ContextData = propertyType.GetElementType();
4327
CurrentContext
.ContextType = ElementContextType.Default;
4328
Type currentObjectType =
CurrentContext
.ContextDataType;
4356
CurrentContext
.ContextDataType.Name /* Child */));
4418
CurrentContext
.ContextData = currentObjectType;
4419
CurrentContext
.NamespaceUri = namespaceURI;
4421
WriteAttributes(
CurrentContext
.ContextDataType, namespaceURI,
4473
if (ElementContextType.Default !=
CurrentContext
.ContextType)
4477
if (
CurrentContext
.ContentParserState == ParsingContent.During)
4486
Type parentElementType =
CurrentContext
.ContextDataType;
4503
if (!
CurrentContext
.IsContentPropertySet)
4512
string namespaceUri =
CurrentContext
.NamespaceUri;
4531
CurrentContext
.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject;
4532
CurrentContext
.ContentPropertyName = contentPropertyName;
4665
Type objectType =
CurrentContext
.ContextDataType;
4696
Type elementType =
CurrentContext
.ContextDataType;
4706
else if(
CurrentContext
.IsContentPropertySet)
4711
Type contentPropertyType = XamlTypeMapper.GetPropertyType(
CurrentContext
.ContentPropertyInfo);
4755
if(
CurrentContext
.ContentParserState != ParsingContent.During)
4758
CompileContentProperty(
CurrentContext
); // Write Content property information.
5031
CurrentContext
.ChildTagLocalName);
5082
if(
CurrentContext
== null )
5091
ElementContextType parentNodeType =
CurrentContext
.ContextType;
5124
CurrentContext
.ContextData == null ? "?" :
CurrentContext
.ContextData.ToString(),
5691
ElementContextStackData context =
CurrentContext
;
6608
textContext =
CurrentContext
;