58 references to ParentContext
PresentationBuildTasks (58)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (58)
621
ParentContext
!= null &&
622
(
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
624
ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(
ParentContext
.ContextData as Type));
1144
if (null ==
ParentContext
)
1147
ElementContextType parentType =
ParentContext
.ContextType;
1162
ParentContext
.ContextDataType,
1970
CompileContentProperty(
ParentContext
);
2959
ParentContext
!= null &&
3110
if (
ParentContext
== null)
3114
ElementContextType pct =
ParentContext
.ContextType;
3115
Type pType =
ParentContext
.ContextData as Type;
3129
if (
ParentContext
.ContextData is DictionaryContextData dictionaryData)
3662
if (
ParentContext
!= null && !namespaceURI.Equals(DefinitionNamespaceURI))
3664
ParentContext
.FirstChildRead = true;
3850
if (
ParentContext
!= null)
3867
if (
ParentContext
!= null)
3871
if (
ParentContext
.IsContentPropertySet)
3873
PropertyInfo pi =
ParentContext
.ContentPropertyInfo;
3878
else if (
ParentContext
.ContextType == ElementContextType.PropertyComplex)
3880
return IsAssignableToIXmlSerializable(
ParentContext
.ContextDataType);
3984
ParentContext
.SetChildTag(dynamicObjectName);
3985
ParentContext
.ChildPropertyType = propertyType;
3999
ContentPropertySeesAProperty(
ParentContext
);
4202
(
ParentContext
== null ||
4203
ParentContext
.ContextType != ElementContextType.Default ||
4204
!BamlRecordManager.TreatAsIAddChild(
ParentContext
.ContextDataType)))
4208
ParentContext
.ContextData.ToString());
4322
if (null !=
ParentContext
)
4325
ParentContext
.SetChildTag(typeFullName);
4336
if (
ParentContext
!= null)
4341
if (!VerifyContentPropertySeesAnElement(
ParentContext
))
4346
if (
ParentContext
.ContextDataType == null)
4354
FirstTagName =
ParentContext
.ContextDataType.Name;
4370
if (
ParentContext
!= null &&
4371
ParentContext
.ContextData != null &&
4372
ParentContext
.NeedToWriteEndElement &&
4373
!
ParentContext
.FirstChildRead)
4376
ParentContext
.FirstChildRead = true;
4377
if (((
ParentContext
.ContextDataType).IsAssignableFrom(currentObjectType) ||
4380
(
ParentContext
.ContextType == ElementContextType.PropertyComplex ||
4381
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
4382
ParentContext
.ContextType == ElementContextType.PropertyIList))
4386
ParentContext
.NeedToWriteEndElement = false;
4406
if (
ParentContext
.ContextType == ElementContextType.PropertyComplex &&
4407
(
ParentContext
.ContextDataType.IsAbstract ||
4408
ParentContext
.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
4410
ThrowException(nameof(SR.ParserBadChild),
ParentContext
.ChildTagLocalName,
4416
ParentContext
?.FirstChildRead = true; // may already be true
4634
switch (
ParentContext
.ContextType)
4644
Type parentType =
ParentContext
.ContextDataType;
4647
!
ParentContext
.IsContentPropertySet &&
4667
Type arrayType =
ParentContext
.ContextDataType;
4686
ThrowException(nameof(SR.ParserNoChildrenTag),
ParentContext
.ContextData.ToString());
5008
if( IsACollection(
ParentContext
.ChildPropertyType) )
5011
!IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType))
5110
if( !isWhitespace || IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType) )
6600
textContext =
ParentContext
;
6607
textContext =
ParentContext
;