59 references to ParentContext
PresentationBuildTasks (59)
Framework\System\Windows\Markup\XamlReaderHelper.cs (59)
638ParentContext != null && 639(ParentContext.ContextType == ElementContextType.PropertyIDictionary || 640typeof(IDictionary).IsAssignableFrom(ParentContext.ContextData as Type)); 1157if (null == ParentContext) 1160ElementContextType parentType = ParentContext.ContextType; 1175ParentContext.ContextDataType, 1987CompileContentProperty(ParentContext); 2973ParentContext != null && 3124if (ParentContext == null) 3128ElementContextType pct = ParentContext.ContextType; 3129Type pType = ParentContext.ContextData as Type; 3139DictionaryContextData dictionaryData = ParentContext.ContextData as DictionaryContextData; 3670if (ParentContext != null && !namespaceURI.Equals(DefinitionNamespaceURI)) 3672ParentContext.FirstChildRead = true; 3858if (ParentContext != null) 3875if (ParentContext != null) 3879if (ParentContext.IsContentPropertySet) 3881PropertyInfo pi = ParentContext.ContentPropertyInfo; 3886else if (ParentContext.ContextType == ElementContextType.PropertyComplex) 3888return IsAssignableToIXmlSerializable(ParentContext.ContextDataType); 3993ParentContext.SetChildTag(dynamicObjectName); 3994ParentContext.ChildPropertyType = propertyType; 4008ContentPropertySeesAProperty(ParentContext); 4206(ParentContext == null || 4207ParentContext.ContextType != ElementContextType.Default || 4208!BamlRecordManager.TreatAsIAddChild(ParentContext.ContextDataType))) 4212ParentContext.ContextData.ToString()); 4326if (null != ParentContext) 4329ParentContext.SetChildTag(typeFullName); 4340if (ParentContext != null) 4345if (!VerifyContentPropertySeesAnElement(ParentContext)) 4350if (ParentContext.ContextDataType == null) 4358FirstTagName = ParentContext.ContextDataType.Name; 4374if (ParentContext != null && 4375ParentContext.ContextData != null && 4376ParentContext.NeedToWriteEndElement && 4377!ParentContext.FirstChildRead) 4380ParentContext.FirstChildRead = true; 4381if (((ParentContext.ContextDataType).IsAssignableFrom(currentObjectType) || 4384(ParentContext.ContextType == ElementContextType.PropertyComplex || 4385ParentContext.ContextType == ElementContextType.PropertyIDictionary || 4386ParentContext.ContextType == ElementContextType.PropertyIList)) 4390ParentContext.NeedToWriteEndElement = false; 4410if (ParentContext.ContextType == ElementContextType.PropertyComplex && 4411(ParentContext.ContextDataType.IsAbstract || 4412ParentContext.ContextDataType.GetConstructor(Type.EmptyTypes) == null)) 4414ThrowException(SRID.ParserBadChild, ParentContext.ChildTagLocalName, 4420if (ParentContext != null) 4421ParentContext.FirstChildRead = true; // may already be true 4627switch (ParentContext.ContextType) 4637Type parentType = ParentContext.ContextDataType; 4640!ParentContext.IsContentPropertySet && 4654Type arrayType = ParentContext.ContextDataType; 4673ThrowException(SRID.ParserNoChildrenTag, ParentContext.ContextData.ToString()); 4964if( IsACollection(ParentContext.ChildPropertyType) ) 4967!IsWhitespaceSignificantAttributePresent(ParentContext.ChildPropertyType)) 5066if( !isWhitespace || IsWhitespaceSignificantAttributePresent(ParentContext.ChildPropertyType) ) 6559textContext = ParentContext; 6566textContext = ParentContext;