59 references to ParentContext
PresentationBuildTasks (59)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (59)
632
ParentContext
!= null &&
633
(
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
635
ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(
ParentContext
.ContextData as Type));
1155
if (null ==
ParentContext
)
1158
ElementContextType parentType =
ParentContext
.ContextType;
1173
ParentContext
.ContextDataType,
1978
CompileContentProperty(
ParentContext
);
2964
ParentContext
!= null &&
3115
if (
ParentContext
== null)
3119
ElementContextType pct =
ParentContext
.ContextType;
3120
Type pType =
ParentContext
.ContextData as Type;
3134
DictionaryContextData dictionaryData =
ParentContext
.ContextData as DictionaryContextData;
3669
if (
ParentContext
!= null && !namespaceURI.Equals(DefinitionNamespaceURI))
3671
ParentContext
.FirstChildRead = true;
3857
if (
ParentContext
!= null)
3874
if (
ParentContext
!= null)
3878
if (
ParentContext
.IsContentPropertySet)
3880
PropertyInfo pi =
ParentContext
.ContentPropertyInfo;
3885
else if (
ParentContext
.ContextType == ElementContextType.PropertyComplex)
3887
return IsAssignableToIXmlSerializable(
ParentContext
.ContextDataType);
3992
ParentContext
.SetChildTag(dynamicObjectName);
3993
ParentContext
.ChildPropertyType = propertyType;
4007
ContentPropertySeesAProperty(
ParentContext
);
4210
(
ParentContext
== null ||
4211
ParentContext
.ContextType != ElementContextType.Default ||
4212
!BamlRecordManager.TreatAsIAddChild(
ParentContext
.ContextDataType)))
4216
ParentContext
.ContextData.ToString());
4330
if (null !=
ParentContext
)
4333
ParentContext
.SetChildTag(typeFullName);
4344
if (
ParentContext
!= null)
4349
if (!VerifyContentPropertySeesAnElement(
ParentContext
))
4354
if (
ParentContext
.ContextDataType == null)
4362
FirstTagName =
ParentContext
.ContextDataType.Name;
4378
if (
ParentContext
!= null &&
4379
ParentContext
.ContextData != null &&
4380
ParentContext
.NeedToWriteEndElement &&
4381
!
ParentContext
.FirstChildRead)
4384
ParentContext
.FirstChildRead = true;
4385
if (((
ParentContext
.ContextDataType).IsAssignableFrom(currentObjectType) ||
4388
(
ParentContext
.ContextType == ElementContextType.PropertyComplex ||
4389
ParentContext
.ContextType == ElementContextType.PropertyIDictionary ||
4390
ParentContext
.ContextType == ElementContextType.PropertyIList))
4394
ParentContext
.NeedToWriteEndElement = false;
4414
if (
ParentContext
.ContextType == ElementContextType.PropertyComplex &&
4415
(
ParentContext
.ContextDataType.IsAbstract ||
4416
ParentContext
.ContextDataType.GetConstructor(Type.EmptyTypes) == null))
4418
ThrowException(nameof(SR.ParserBadChild),
ParentContext
.ChildTagLocalName,
4424
if (
ParentContext
!= null)
4425
ParentContext
.FirstChildRead = true; // may already be true
4641
switch (
ParentContext
.ContextType)
4651
Type parentType =
ParentContext
.ContextDataType;
4654
!
ParentContext
.IsContentPropertySet &&
4674
Type arrayType =
ParentContext
.ContextDataType;
4693
ThrowException(nameof(SR.ParserNoChildrenTag),
ParentContext
.ContextData.ToString());
5015
if( IsACollection(
ParentContext
.ChildPropertyType) )
5018
!IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType))
5117
if( !isWhitespace || IsWhitespaceSignificantAttributePresent(
ParentContext
.ChildPropertyType) )
6610
textContext =
ParentContext
;
6617
textContext =
ParentContext
;