Class SplashScreen
A splash screen window for rendering XAML that shows with no chrome, and once OnLoading() has completed, opens a new window.
Inheritance
Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
public class SplashScreen : Window
Constructors
| Improve this Doc View SourceSplashScreen(Type)
Creates and activates a new splashscreen, and creates and opens the specified window type once complete.
Declaration
public SplashScreen(Type window)
Parameters
Type | Name | Description |
---|---|---|
System.Type | window | Type of window to create. Must have an empty constructor |
SplashScreen(Window)
Creates and activates a new splashscreen, and opens the specified window once complete.
Declaration
public SplashScreen(Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | Window to open once splash screen is complete |
Properties
| Improve this Doc View SourceHeight
Gets or sets the height of the splash screen. Set to NaN to size for content
Declaration
public double Height { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
IsAlwaysOnTop
Gets or sets a value indicating whether the splash screen should be top-most
Declaration
public bool IsAlwaysOnTop { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Width
Gets or sets the width of the splash screen. Set to NaN to size for content
Declaration
public double Width { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
| Improve this Doc View SourceOnLoading()
Override to display loading progress or delay loading of main window
Declaration
protected virtual Task OnLoading()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Events
| Improve this Doc View SourceCompleted
Raised once the splash screen has completed OnLoading().
Declaration
public event EventHandler<Window?> Completed
Event Type
Type | Description |
---|---|
System.EventHandler<System.Nullable<Window>> |