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