58 references to ParentContext
PresentationBuildTasks (58)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (58)
618
ParentContext
!= null &&
619
(
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
621
ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(
ParentContext
.ContextData as Type));
1141
if (null ==
ParentContext
)
1144
ElementContextType parentType =
ParentContext
.ContextType;
1159
ParentContext
.ContextDataType,
1967
CompileContentProperty(
ParentContext
);
2956
ParentContext
!= null &&
3107
if (
ParentContext
== null)
3111
ElementContextType pct =
ParentContext
.ContextType;
3112
Type pType =
ParentContext
.ContextData as Type;
3126
if (
ParentContext
.ContextData is DictionaryContextData dictionaryData)
3659
if (
ParentContext
!= null && !namespaceURI.Equals(DefinitionNamespaceURI))
3661
ParentContext
.FirstChildRead = true;
3847
if (
ParentContext
!= null)
3864
if (
ParentContext
!= null)
3868
if (
ParentContext
.IsContentPropertySet)
3870
PropertyInfo pi =
ParentContext
.ContentPropertyInfo;
3875
else if (
ParentContext
.ContextType == ElementContextType.PropertyComplex)
3877
return IsAssignableToIXmlSerializable(
ParentContext
.ContextDataType);
3981
ParentContext
.SetChildTag(dynamicObjectName);
3982
ParentContext
.ChildPropertyType = propertyType;
3996
ContentPropertySeesAProperty(
ParentContext
);
4199
(
ParentContext
== null ||
4200
ParentContext
.ContextType != ElementContextType.Default ||
4201
!BamlRecordManager.TreatAsIAddChild(
ParentContext
.ContextDataType)))
4205
ParentContext
.ContextData.ToString());
4319
if (null !=
ParentContext
)
4322
ParentContext
.SetChildTag(typeFullName);
4333
if (
ParentContext
!= null)
4338
if (!VerifyContentPropertySeesAnElement(
ParentContext
))
4343
if (
ParentContext
.ContextDataType == null)
4351
FirstTagName =
ParentContext
.ContextDataType.Name;
4367
if (
ParentContext
!= null &&
4368
ParentContext
.ContextData != null &&
4369
ParentContext
.NeedToWriteEndElement &&
4370
!
ParentContext
.FirstChildRead)
4373
ParentContext
.FirstChildRead = true;
4374
if (((
ParentContext
.ContextDataType).IsAssignableFrom(currentObjectType) ||
4377
(
ParentContext
.ContextType == ElementContextType.PropertyComplex ||
4378
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
4379
ParentContext
.ContextType == ElementContextType.PropertyIList))
4383
ParentContext
.NeedToWriteEndElement = false;
4403
if (
ParentContext
.ContextType == ElementContextType.PropertyComplex &&
4404
(
ParentContext
.ContextDataType.IsAbstract ||
4405
ParentContext
.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
4407
ThrowException(nameof(SR.ParserBadChild),
ParentContext
.ChildTagLocalName,
4413
ParentContext
?.FirstChildRead = true; // may already be true
4631
switch (
ParentContext
.ContextType)
4641
Type parentType =
ParentContext
.ContextDataType;
4644
!
ParentContext
.IsContentPropertySet &&
4664
Type arrayType =
ParentContext
.ContextDataType;
4683
ThrowException(nameof(SR.ParserNoChildrenTag),
ParentContext
.ContextData.ToString());
5005
if( IsACollection(
ParentContext
.ChildPropertyType) )
5008
!IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType))
5107
if( !isWhitespace || IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType) )
6597
textContext =
ParentContext
;
6604
textContext =
ParentContext
;