16 references to ParentInstance
System.Xaml (16)
System\Xaml\Context\ServiceProviderContext.cs (3)
229get { return _xamlContext.ParentInstance; } 329token.Target.Instance = _xamlContext.ParentInstance; 339token.Target.Instance = _xamlContext.ParentInstance;
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
235if (ctx.ParentInstance is null && ctx.ParentProperty != XamlLanguage.Arguments) 294object parentInstance = _context.ParentInstance; 1349ctx.ParentInstance); 1353declaringType.SetTypeConverterHandler(ctx.ParentInstance, eventArgs); 1565object inst = onParent ? ctx.ParentInstance : ctx.CurrentInstance; 1603Debug.Assert(inst == ctx.ParentInstance); 1615if (ctx.ParentInstance is not null) 1617Runtime.SetUriBase(ctx.ParentType, ctx.ParentInstance, ctx.BaseUri); 1650object parentInstance = ctx.ParentInstance; 1971object parentInstance = ctx.ParentInstance; 2103RegisterName(ctx, name, ctx.ParentInstance, ctx.ParentType, 2198if (property is not null && property.IsDirective && ctx.ParentInstance is null && property != XamlLanguage.Key) 2211token.Target.Instance = ctx.ParentInstance;