23 references to ParentType
System.Xaml (23)
System\Xaml\Context\ServiceProviderContext.cs (2)
335token.Target.InstanceType = _xamlContext.ParentType; 345token.Target.InstanceType = _xamlContext.ParentType;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (21)
275? _context.ParentType 523_context.ParentType)); 1271XamlType xamlType = ctx.ParentType; 1362declaringType = ctx.ParentType; 1527XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1625XamlType xamlType = onParent ? ctx.ParentType : ctx.CurrentType; 1658Runtime.SetUriBase(ctx.ParentType, ctx.ParentInstance, ctx.BaseUri); 1704declaringType = ctx.ParentType; 1751ctx.CurrentType = ctx.ParentType.ItemType; 1783bool inDictionary = ((ctx.ParentProperty == XamlLanguage.Items) && ctx.ParentType.IsDictionary); 1800XamlType collectionType = ctx.ParentType; 1853Debug.Assert(ctx.ParentType.IsCollection, "Logic_WillParentCollectionAdd called on a non-collection"); 1857XamlType itemType = ctx.ParentType.ItemType; 1882Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 1901Debug.WriteLine(SR.Format(SR.DictionaryFirstChanceException, ctx.ParentType, key, ctx.ParentType.KeyType)); 1926Runtime.AddToDictionary(ctx.ParentCollection, ctx.ParentType, value, ctx.CurrentType, key); 2043ctx.ParentType)); 2068XamlType parentType = ctx.ParentType; 2164RegisterName(ctx, name, ctx.ParentInstance, ctx.ParentType, 2275token.Target.InstanceType = ctx.ParentType;