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