23 references to ParentType
System.Xaml (23)
System\Xaml\Context\ServiceProviderContext.cs (2)
333token.Target.InstanceType = _xamlContext.ParentType; 343token.Target.InstanceType = _xamlContext.ParentType;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (21)
270? _context.ParentType 511_context.ParentType)); 1241XamlType xamlType = ctx.ParentType; 1329declaringType = ctx.ParentType; 1487XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1586XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1619Runtime.SetUriBase(ctx.ParentType, ctx.ParentInstance, ctx.BaseUri); 1665declaringType = ctx.ParentType; 1709ctx.CurrentType = ctx.ParentType.ItemType; 1739bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.IsDictionary); 1756XamlType collectionType = ctx.ParentType; 1807Debug.Assert(ctx.ParentType.IsCollection, "Logic_WillParentCollectionAdd called on a non-collection"); 1811XamlType itemType = ctx.ParentType.ItemType; 1835Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1853Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.ParentType, key, ctx.ParentType.KeyType)); 1877Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1986ctx.ParentType)); 2010XamlType parentType = ctx.ParentType; 2105RegisterName(ctx, name, ctx.ParentInstance, ctx.ParentType, 2214token.Target.InstanceType = ctx.ParentType;