Table of Contents

Class BrowserWindow

Namespace
Xui.Runtime.Browser.Actual
Assembly
Xui.Runtime.Browser.dll
public class BrowserWindow : IWindow, IServiceProvider
Inheritance
BrowserWindow
Implements
Inherited Members
Extension Methods

Constructors

BrowserWindow(IWindow, IServiceProvider)

public BrowserWindow(IWindow windowAbstract, IServiceProvider nextServiceProvider)

Parameters

windowAbstract IWindow
nextServiceProvider IServiceProvider

Properties

Abstract

Gets the abstract window immediately upstream of this actual window. Together with Actual, this forms the bidirectional composed-window chain.

public IWindow Abstract { get; }

Property Value

IWindow

Instance

public static BrowserWindow? Instance { get; }

Property Value

BrowserWindow

NextServiceProvider

The service provider reached after this actual window. Middleware uses this exclusively for its forward service chain; it must never use its abstract event receiver as a service fallback.

public IServiceProvider NextServiceProvider { get; }

Property Value

IServiceProvider

RequireKeyboard

Gets or sets whether the window currently requires keyboard input focus. Platforms may use this to show or hide on-screen keyboards.

public bool RequireKeyboard { get; set; }

Property Value

bool

Title

Gets or sets the window title, where supported by the platform (e.g., desktop).

public string Title { get; set; }

Property Value

string

Methods

GetService(Type)

Gets the service object of the specified type.

public 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.

Invalidate()

Requests a redraw of the window surface. The platform should trigger a paint or render callback as soon as possible.

public void Invalidate()

Show()

Displays the window to the user. This may include making it visible, entering the main loop, or attaching it to the application's view hierarchy, depending on the platform.

public void Show()