59 references to ParentContext
PresentationBuildTasks (59)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (59)
622
ParentContext
!= null &&
623
(
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
625
ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(
ParentContext
.ContextData as Type));
1145
if (null ==
ParentContext
)
1148
ElementContextType parentType =
ParentContext
.ContextType;
1163
ParentContext
.ContextDataType,
1971
CompileContentProperty(
ParentContext
);
2960
ParentContext
!= null &&
3111
if (
ParentContext
== null)
3115
ElementContextType pct =
ParentContext
.ContextType;
3116
Type pType =
ParentContext
.ContextData as Type;
3130
if (
ParentContext
.ContextData is DictionaryContextData dictionaryData)
3663
if (
ParentContext
!= null && !namespaceURI.Equals(DefinitionNamespaceURI))
3665
ParentContext
.FirstChildRead = true;
3851
if (
ParentContext
!= null)
3868
if (
ParentContext
!= null)
3872
if (
ParentContext
.IsContentPropertySet)
3874
PropertyInfo pi =
ParentContext
.ContentPropertyInfo;
3879
else if (
ParentContext
.ContextType == ElementContextType.PropertyComplex)
3881
return IsAssignableToIXmlSerializable(
ParentContext
.ContextDataType);
3985
ParentContext
.SetChildTag(dynamicObjectName);
3986
ParentContext
.ChildPropertyType = propertyType;
4000
ContentPropertySeesAProperty(
ParentContext
);
4203
(
ParentContext
== null ||
4204
ParentContext
.ContextType != ElementContextType.Default ||
4205
!BamlRecordManager.TreatAsIAddChild(
ParentContext
.ContextDataType)))
4209
ParentContext
.ContextData.ToString());
4323
if (null !=
ParentContext
)
4326
ParentContext
.SetChildTag(typeFullName);
4337
if (
ParentContext
!= null)
4342
if (!VerifyContentPropertySeesAnElement(
ParentContext
))
4347
if (
ParentContext
.ContextDataType == null)
4355
FirstTagName =
ParentContext
.ContextDataType.Name;
4371
if (
ParentContext
!= null &&
4372
ParentContext
.ContextData != null &&
4373
ParentContext
.NeedToWriteEndElement &&
4374
!
ParentContext
.FirstChildRead)
4377
ParentContext
.FirstChildRead = true;
4378
if (((
ParentContext
.ContextDataType).IsAssignableFrom(currentObjectType) ||
4381
(
ParentContext
.ContextType == ElementContextType.PropertyComplex ||
4382
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
4383
ParentContext
.ContextType == ElementContextType.PropertyIList))
4387
ParentContext
.NeedToWriteEndElement = false;
4407
if (
ParentContext
.ContextType == ElementContextType.PropertyComplex &&
4408
(
ParentContext
.ContextDataType.IsAbstract ||
4409
ParentContext
.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
4411
ThrowException(nameof(SR.ParserBadChild),
ParentContext
.ChildTagLocalName,
4417
if (
ParentContext
!= null)
4418
ParentContext
.FirstChildRead = true; // may already be true
4636
switch (
ParentContext
.ContextType)
4646
Type parentType =
ParentContext
.ContextDataType;
4649
!
ParentContext
.IsContentPropertySet &&
4669
Type arrayType =
ParentContext
.ContextDataType;
4688
ThrowException(nameof(SR.ParserNoChildrenTag),
ParentContext
.ContextData.ToString());
5010
if( IsACollection(
ParentContext
.ChildPropertyType) )
5013
!IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType))
5112
if( !isWhitespace || IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType) )
6602
textContext =
ParentContext
;
6609
textContext =
ParentContext
;