Class BrowserWindow
public class BrowserWindow : IWindow, IServiceProvider
- Inheritance
-
BrowserWindow
- Implements
- Inherited Members
- Extension Methods
Constructors
BrowserWindow(IWindow)
public BrowserWindow(IWindow windowAbstract)
Parameters
windowAbstractIWindow
Properties
Instance
public static BrowserWindow? Instance { get; }
Property Value
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
Title
Gets or sets the window title, where supported by the platform (e.g., desktop).
public string Title { get; set; }
Property Value
Methods
GetService(Type)
Gets the service object of the specified type.
public 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.
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()