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