Table of Contents

Class RootView

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll
public class RootView : View, ILayerHost, IServiceProvider, IContent, IFocus
Inheritance
RootView
Implements
Inherited Members
Extension Methods

Constructors

RootView(Window)

public RootView(Window window)

Parameters

window Window

Properties

Content

public View? Content { get; set; }

Property Value

View

Count

Returns the number of child views. Used by layout containers and traversal logic. Leaf views should return 0.

public override int Count { get; }

Property Value

int

EventRouter

public EventRouter EventRouter { get; }

Property Value

EventRouter

FocusedView

Gets or sets the view that currently holds keyboard focus. Setting to null clears focus. Setting fires OnBlur() / OnFocus() on the affected views.

public View? FocusedView { get; set; }

Property Value

View

this[int]

Indexer to access child views by index. Layout containers should implement this to expose their children.

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

Parameters

index int

Property Value

View

Window

public Window Window { get; }

Property Value

Window

Methods

GetService(Type)

Gets the service object of the specified type.

public override object? GetService(Type serviceType)

Parameters

serviceType Type

An object that specifies the type of service object to get.

Returns

object

A service object of type serviceType.

-or-

null if there is no service object of type serviceType.

OnChildRenderChanged(View)

Called when a direct or indirect child view has changed visually and requires re-rendering. The default implementation forwards the notification up the visual tree.

protected override void OnChildRenderChanged(View child)

Parameters

child View

The child view whose render state has changed.