59 references to ParentContext
PresentationBuildTasks (59)
Framework\System\Windows\Markup\XamlReaderHelper.cs (59)
638
ParentContext
!= null &&
639
(
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
640
typeof(IDictionary).IsAssignableFrom(
ParentContext
.ContextData as Type));
1157
if (null ==
ParentContext
)
1160
ElementContextType parentType =
ParentContext
.ContextType;
1175
ParentContext
.ContextDataType,
1987
CompileContentProperty(
ParentContext
);
2973
ParentContext
!= null &&
3124
if (
ParentContext
== null)
3128
ElementContextType pct =
ParentContext
.ContextType;
3129
Type pType =
ParentContext
.ContextData as Type;
3139
DictionaryContextData dictionaryData =
ParentContext
.ContextData as DictionaryContextData;
3670
if (
ParentContext
!= null && !namespaceURI.Equals(DefinitionNamespaceURI))
3672
ParentContext
.FirstChildRead = true;
3858
if (
ParentContext
!= null)
3875
if (
ParentContext
!= null)
3879
if (
ParentContext
.IsContentPropertySet)
3881
PropertyInfo pi =
ParentContext
.ContentPropertyInfo;
3886
else if (
ParentContext
.ContextType == ElementContextType.PropertyComplex)
3888
return IsAssignableToIXmlSerializable(
ParentContext
.ContextDataType);
3993
ParentContext
.SetChildTag(dynamicObjectName);
3994
ParentContext
.ChildPropertyType = propertyType;
4008
ContentPropertySeesAProperty(
ParentContext
);
4206
(
ParentContext
== null ||
4207
ParentContext
.ContextType != ElementContextType.Default ||
4208
!BamlRecordManager.TreatAsIAddChild(
ParentContext
.ContextDataType)))
4212
ParentContext
.ContextData.ToString());
4326
if (null !=
ParentContext
)
4329
ParentContext
.SetChildTag(typeFullName);
4340
if (
ParentContext
!= null)
4345
if (!VerifyContentPropertySeesAnElement(
ParentContext
))
4350
if (
ParentContext
.ContextDataType == null)
4358
FirstTagName =
ParentContext
.ContextDataType.Name;
4374
if (
ParentContext
!= null &&
4375
ParentContext
.ContextData != null &&
4376
ParentContext
.NeedToWriteEndElement &&
4377
!
ParentContext
.FirstChildRead)
4380
ParentContext
.FirstChildRead = true;
4381
if (((
ParentContext
.ContextDataType).IsAssignableFrom(currentObjectType) ||
4384
(
ParentContext
.ContextType == ElementContextType.PropertyComplex ||
4385
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
4386
ParentContext
.ContextType == ElementContextType.PropertyIList))
4390
ParentContext
.NeedToWriteEndElement = false;
4410
if (
ParentContext
.ContextType == ElementContextType.PropertyComplex &&
4411
(
ParentContext
.ContextDataType.IsAbstract ||
4412
ParentContext
.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
4414
ThrowException(SRID.ParserBadChild,
ParentContext
.ChildTagLocalName,
4420
if (
ParentContext
!= null)
4421
ParentContext
.FirstChildRead = true; // may already be true
4627
switch (
ParentContext
.ContextType)
4637
Type parentType =
ParentContext
.ContextDataType;
4640
!
ParentContext
.IsContentPropertySet &&
4654
Type arrayType =
ParentContext
.ContextDataType;
4673
ThrowException(SRID.ParserNoChildrenTag,
ParentContext
.ContextData.ToString());
4964
if( IsACollection(
ParentContext
.ChildPropertyType) )
4967
!IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType))
5066
if( !isWhitespace || IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType) )
6559
textContext =
ParentContext
;
6566
textContext =
ParentContext
;