Table of Contents

Class RootView

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

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

window Window

The 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

View

Count

The number of child views (always 1 when Content is set, else 0).

public override int Count { get; }

Property Value

int

EventRouter

The input event router for this view tree.

public EventRouter EventRouter { get; }

Property Value

EventRouter

FocusedView

The currently focused view within this tree, or null if none.

public View? FocusedView { get; set; }

Property Value

View

this[int]

Gets the child view at the given index.

public override View this[int index] { get; }

Parameters

index int

Property Value

View

Window

The window that owns this root view.

public Window Window { get; }

Property Value

Window

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

serviceType Type

Returns

object

OnChildRenderChanged(View)

Called when a child view signals that its rendered state has changed.

protected override void OnChildRenderChanged(View child)

Parameters

child View