59 references to ParentContext
PresentationBuildTasks (59)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (59)
626
ParentContext
!= null &&
627
(
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
629
ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(
ParentContext
.ContextData as Type));
1149
if (null ==
ParentContext
)
1152
ElementContextType parentType =
ParentContext
.ContextType;
1167
ParentContext
.ContextDataType,
1972
CompileContentProperty(
ParentContext
);
2958
ParentContext
!= null &&
3109
if (
ParentContext
== null)
3113
ElementContextType pct =
ParentContext
.ContextType;
3114
Type pType =
ParentContext
.ContextData as Type;
3128
DictionaryContextData dictionaryData =
ParentContext
.ContextData as DictionaryContextData;
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);
3986
ParentContext
.SetChildTag(dynamicObjectName);
3987
ParentContext
.ChildPropertyType = propertyType;
4001
ContentPropertySeesAProperty(
ParentContext
);
4204
(
ParentContext
== null ||
4205
ParentContext
.ContextType != ElementContextType.Default ||
4206
!BamlRecordManager.TreatAsIAddChild(
ParentContext
.ContextDataType)))
4210
ParentContext
.ContextData.ToString());
4324
if (null !=
ParentContext
)
4327
ParentContext
.SetChildTag(typeFullName);
4338
if (
ParentContext
!= null)
4343
if (!VerifyContentPropertySeesAnElement(
ParentContext
))
4348
if (
ParentContext
.ContextDataType == null)
4356
FirstTagName =
ParentContext
.ContextDataType.Name;
4372
if (
ParentContext
!= null &&
4373
ParentContext
.ContextData != null &&
4374
ParentContext
.NeedToWriteEndElement &&
4375
!
ParentContext
.FirstChildRead)
4378
ParentContext
.FirstChildRead = true;
4379
if (((
ParentContext
.ContextDataType).IsAssignableFrom(currentObjectType) ||
4382
(
ParentContext
.ContextType == ElementContextType.PropertyComplex ||
4383
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
4384
ParentContext
.ContextType == ElementContextType.PropertyIList))
4388
ParentContext
.NeedToWriteEndElement = false;
4408
if (
ParentContext
.ContextType == ElementContextType.PropertyComplex &&
4409
(
ParentContext
.ContextDataType.IsAbstract ||
4410
ParentContext
.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
4412
ThrowException(nameof(SR.ParserBadChild),
ParentContext
.ChildTagLocalName,
4418
if (
ParentContext
!= null)
4419
ParentContext
.FirstChildRead = true; // may already be true
4635
switch (
ParentContext
.ContextType)
4645
Type parentType =
ParentContext
.ContextDataType;
4648
!
ParentContext
.IsContentPropertySet &&
4668
Type arrayType =
ParentContext
.ContextDataType;
4687
ThrowException(nameof(SR.ParserNoChildrenTag),
ParentContext
.ContextData.ToString());
5009
if( IsACollection(
ParentContext
.ChildPropertyType) )
5012
!IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType))
5111
if( !isWhitespace || IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType) )
6604
textContext =
ParentContext
;
6611
textContext =
ParentContext
;