66 references to CurrentContext
PresentationBuildTasks (66)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (66)
211
if (
CurrentContext
!= null && _readAnotherToken)
339
if (
CurrentContext
!= null &&
CurrentContext
.IsEmptyElement)
607
UnknownData data =
CurrentContext
.ContextData as UnknownData;
644
if (
CurrentContext
.IsEmptyElement)
655
if (
CurrentContext
.ContentParserState != ParsingContent.Before)
657
if (
CurrentContext
.IsContentPropertySet)
659
PropertyInfo contentPropertyInfo =
CurrentContext
.ContentPropertyInfo;
667
Type elementType = (Type)
CurrentContext
.ContextDataType;
668
string namespaceUri =
CurrentContext
.NamespaceUri;
1959
if (null ==
CurrentContext
)
1977
elementContextStackData.ContextType =
CurrentContext
.ContextType;
2008
if (
CurrentContext
!= null &&
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary)
2067
if (null !=
CurrentContext
)
2076
if (
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary ||
2077
CurrentContext
.ContextType == ElementContextType.PropertyComplex)
2287
if (
CurrentContext
.ContextType == ElementContextType.Default &&
2288
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)
4171
CurrentContext
.ContextType = ElementContextType.PropertyComplex;
4172
CurrentContext
.ContextData = propertyType;
4213
CurrentContext
.ContextType = ElementContextType.PropertyIList;
4214
CurrentContext
.ContextData = propertyType.GetElementType();
4235
CurrentContext
.ContextType = ElementContextType.PropertyIDictionary;
4236
CurrentContext
.ContextData = new DictionaryContextData(propertyType);
4255
CurrentContext
.NeedToWriteEndElement = true;
4304
CurrentContext
.ContextType = ElementContextType.PropertyArray;
4306
CurrentContext
.ContextData = propertyType.GetElementType();
4332
CurrentContext
.ContextType = ElementContextType.Default;
4333
Type currentObjectType =
CurrentContext
.ContextDataType;
4361
CurrentContext
.ContextDataType.Name /* Child */));
4424
CurrentContext
.ContextData = currentObjectType;
4425
CurrentContext
.NamespaceUri = namespaceURI;
4427
WriteAttributes(
CurrentContext
.ContextDataType, namespaceURI,
4479
if (ElementContextType.Default !=
CurrentContext
.ContextType)
4483
if (
CurrentContext
.ContentParserState == ParsingContent.During)
4492
Type parentElementType =
CurrentContext
.ContextDataType;
4509
if (!
CurrentContext
.IsContentPropertySet)
4518
string namespaceUri =
CurrentContext
.NamespaceUri;
4537
CurrentContext
.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject;
4538
CurrentContext
.ContentPropertyName = contentPropertyName;
4669
Type objectType =
CurrentContext
.ContextDataType;
4700
Type elementType =
CurrentContext
.ContextDataType;
4710
else if(
CurrentContext
.IsContentPropertySet)
4715
Type contentPropertyType = XamlTypeMapper.GetPropertyType(
CurrentContext
.ContentPropertyInfo);
4759
if(
CurrentContext
.ContentParserState != ParsingContent.During)
4762
CompileContentProperty(
CurrentContext
); // Write Content property information.
5035
CurrentContext
.ChildTagLocalName);
5086
if(
CurrentContext
== null )
5095
ElementContextType parentNodeType =
CurrentContext
.ContextType;
5128
CurrentContext
.ContextData == null ? "?" :
CurrentContext
.ContextData.ToString(),
5698
ElementContextStackData context =
CurrentContext
;
6615
textContext =
CurrentContext
;