59 references to ParentContext
PresentationBuildTasks (59)
src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (59)
622ParentContext != null && 623(ParentContext.ContextType == ElementContextType.PropertyIDictionary || 625ReflectionHelper.GetMscorlibType(typeof(IDictionary)).IsAssignableFrom(ParentContext.ContextData as Type)); 1145if (null == ParentContext) 1148ElementContextType parentType = ParentContext.ContextType; 1163ParentContext.ContextDataType, 1971CompileContentProperty(ParentContext); 2960ParentContext != null && 3111if (ParentContext == null) 3115ElementContextType pct = ParentContext.ContextType; 3116Type pType = ParentContext.ContextData as Type; 3130if (ParentContext.ContextData is DictionaryContextData dictionaryData) 3663if (ParentContext != null && !namespaceURI.Equals(DefinitionNamespaceURI)) 3665ParentContext.FirstChildRead = true; 3851if (ParentContext != null) 3868if (ParentContext != null) 3872if (ParentContext.IsContentPropertySet) 3874PropertyInfo pi = ParentContext.ContentPropertyInfo; 3879else if (ParentContext.ContextType == ElementContextType.PropertyComplex) 3881return IsAssignableToIXmlSerializable(ParentContext.ContextDataType); 3985ParentContext.SetChildTag(dynamicObjectName); 3986ParentContext.ChildPropertyType = propertyType; 4000ContentPropertySeesAProperty(ParentContext); 4203(ParentContext == null || 4204ParentContext.ContextType != ElementContextType.Default || 4205!BamlRecordManager.TreatAsIAddChild(ParentContext.ContextDataType))) 4209ParentContext.ContextData.ToString()); 4323if (null != ParentContext) 4326ParentContext.SetChildTag(typeFullName); 4337if (ParentContext != null) 4342if (!VerifyContentPropertySeesAnElement(ParentContext)) 4347if (ParentContext.ContextDataType == null) 4355FirstTagName = ParentContext.ContextDataType.Name; 4371if (ParentContext != null && 4372ParentContext.ContextData != null && 4373ParentContext.NeedToWriteEndElement && 4374!ParentContext.FirstChildRead) 4377ParentContext.FirstChildRead = true; 4378if (((ParentContext.ContextDataType).IsAssignableFrom(currentObjectType) || 4381(ParentContext.ContextType == ElementContextType.PropertyComplex || 4382ParentContext.ContextType == ElementContextType.PropertyIDictionary || 4383ParentContext.ContextType == ElementContextType.PropertyIList)) 4387ParentContext.NeedToWriteEndElement = false; 4407if (ParentContext.ContextType == ElementContextType.PropertyComplex && 4408(ParentContext.ContextDataType.IsAbstract || 4409ParentContext.ContextDataType.GetConstructor(Type.EmptyTypes) == null)) 4411ThrowException(nameof(SR.ParserBadChild), ParentContext.ChildTagLocalName, 4417if (ParentContext != null) 4418ParentContext.FirstChildRead = true; // may already be true 4636switch (ParentContext.ContextType) 4646Type parentType = ParentContext.ContextDataType; 4649!ParentContext.IsContentPropertySet && 4669Type arrayType = ParentContext.ContextDataType; 4688ThrowException(nameof(SR.ParserNoChildrenTag), ParentContext.ContextData.ToString()); 5010if( IsACollection(ParentContext.ChildPropertyType) ) 5013!IsWhitespaceSignificantAttributePresent(ParentContext.ChildPropertyType)) 5112if( !isWhitespace || IsWhitespaceSignificantAttributePresent(ParentContext.ChildPropertyType) ) 6602textContext = ParentContext; 6609textContext = ParentContext;