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