Class RootView
public class RootView : View, ILayerHost, IServiceProvider, IContent, IFocus
- Inheritance
-
RootView
- Implements
- Inherited Members
- Extension Methods
Constructors
RootView(Window)
public RootView(Window window)
Parameters
windowWindow
Properties
Content
public View? Content { get; set; }
Property Value
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
EventRouter
public EventRouter EventRouter { get; }
Property Value
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
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
indexint
Property Value
Window
public Window Window { get; }
Property Value
Methods
GetService(Type)
Gets the service object of the specified type.
public override object? GetService(Type serviceType)
Parameters
serviceTypeTypeAn 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
childViewThe child view whose render state has changed.