66 references to CurrentContext
PresentationBuildTasks (66)
Framework\System\Windows\Markup\XamlReaderHelper.cs (66)
229
if (
CurrentContext
!= null && _readAnotherToken)
351
if (
CurrentContext
!= null &&
CurrentContext
.IsEmptyElement)
619
UnknownData data =
CurrentContext
.ContextData as UnknownData;
652
if (
CurrentContext
.IsEmptyElement)
663
if (
CurrentContext
.ContentParserState != ParsingContent.Before)
665
if (
CurrentContext
.IsContentPropertySet)
667
PropertyInfo contentPropertyInfo =
CurrentContext
.ContentPropertyInfo;
675
Type elementType = (Type)
CurrentContext
.ContextDataType;
676
string namespaceUri =
CurrentContext
.NamespaceUri;
1974
if (null ==
CurrentContext
)
1992
elementContextStackData.ContextType =
CurrentContext
.ContextType;
2023
if (
CurrentContext
!= null &&
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary)
2082
if (null !=
CurrentContext
)
2091
if (
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary ||
2092
CurrentContext
.ContextType == ElementContextType.PropertyComplex)
2302
if (
CurrentContext
.ContextType == ElementContextType.Default &&
2303
dependencyObjectType.IsAssignableFrom(
CurrentContext
.ContextDataType))
3655
CurrentContext
.ContextData = elementBaseType;
3658
CurrentContext
.ContextType = ElementContextType.Default;
3688
CurrentContext
.ContextData = elementBaseType;
3727
CurrentContext
.ContextType = ElementContextType.DefTag;
3742
CurrentContext
.ContextType = ElementContextType.Unknown;
3743
CurrentContext
.ContextData = new UnknownData(localName, namespaceURI);
3754
if (_definitionScopeType != null && _definitionScopeType.Equals(
CurrentContext
.ContextData))
3762
if (
CurrentContext
.NeedToWriteEndElement)
3764
Debug.Assert(
CurrentContext
.ContextType == ElementContextType.PropertyComplex ||
3765
CurrentContext
.ContextType == ElementContextType.PropertyIList ||
3766
CurrentContext
.ContextType == ElementContextType.PropertyIDictionary,
3772
switch (
CurrentContext
.ContextType)
4178
CurrentContext
.ContextType = ElementContextType.PropertyComplex;
4179
CurrentContext
.ContextData = propertyType;
4215
CurrentContext
.ContextType = ElementContextType.PropertyIList;
4216
CurrentContext
.ContextData = propertyType.GetElementType();
4237
CurrentContext
.ContextType = ElementContextType.PropertyIDictionary;
4238
CurrentContext
.ContextData = new DictionaryContextData(propertyType);
4257
CurrentContext
.NeedToWriteEndElement = true;
4306
CurrentContext
.ContextType = ElementContextType.PropertyArray;
4308
CurrentContext
.ContextData = propertyType.GetElementType();
4334
CurrentContext
.ContextType = ElementContextType.Default;
4335
Type currentObjectType =
CurrentContext
.ContextDataType;
4363
CurrentContext
.ContextDataType.Name /* Child */));
4426
CurrentContext
.ContextData = currentObjectType;
4427
CurrentContext
.NamespaceUri = namespaceURI;
4429
WriteAttributes(
CurrentContext
.ContextDataType, namespaceURI,
4481
if (ElementContextType.Default !=
CurrentContext
.ContextType)
4485
if (
CurrentContext
.ContentParserState == ParsingContent.During)
4494
Type parentElementType =
CurrentContext
.ContextDataType;
4506
if (!
CurrentContext
.IsContentPropertySet)
4515
string namespaceUri =
CurrentContext
.NamespaceUri;
4534
CurrentContext
.ContentPropertyInfo = (PropertyInfo)propertyDynamicObject;
4535
CurrentContext
.ContentPropertyName = contentPropertyName;
4655
Type objectType =
CurrentContext
.ContextDataType;
4686
Type elementType =
CurrentContext
.ContextDataType;
4696
else if(
CurrentContext
.IsContentPropertySet)
4701
Type contentPropertyType = XamlTypeMapper.GetPropertyType(
CurrentContext
.ContentPropertyInfo);
4732
if(
CurrentContext
.ContentParserState != ParsingContent.During)
4735
CompileContentProperty(
CurrentContext
); // Write Content property information.
4990
CurrentContext
.ChildTagLocalName);
5041
if(
CurrentContext
== null )
5050
ElementContextType parentNodeType =
CurrentContext
.ContextType;
5083
CurrentContext
.ContextData == null ? "?" :
CurrentContext
.ContextData.ToString(),
5653
ElementContextStackData context =
CurrentContext
;
6570
textContext =
CurrentContext
;