Class RootView
The root container view that bridges a Window with its UI content hierarchy.
public class RootView : View, ILayerHost, IServiceProvider, IContent, IFocus
- Inheritance
-
RootView
- Implements
- Inherited Members
- Extension Methods
Constructors
RootView(Window)
Initializes a new RootView for the given window.
public RootView(Window window)
Parameters
windowWindowThe window that owns this root view.
Properties
Content
Gets or sets the single content view hosted by this root view.
public View? Content { get; set; }
Property Value
Count
The number of child views (always 1 when Content is set, else 0).
public override int Count { get; }
Property Value
EventRouter
The input event router for this view tree.
public EventRouter EventRouter { get; }
Property Value
FocusedView
The currently focused view within this tree, or null if none.
public View? FocusedView { get; set; }
Property Value
this[int]
Gets the child view at the given index.
public override View this[int index] { get; }
Parameters
indexint
Property Value
Window
The window that owns this root view.
public Window Window { get; }
Property Value
Methods
GetService(Type)
Resolves a service of the given type by walking up the parent chain.
Returns null if no ancestor provides the service.
public override object? GetService(Type serviceType)
Parameters
serviceTypeType
Returns
OnChildRenderChanged(View)
Called when a child view signals that its rendered state has changed.
protected override void OnChildRenderChanged(View child)
Parameters
childView