wpf-devexpress-dot-xpf-dot-core-dot-splashscreenmanager-dot-showonstartup-x28-system-dot-boolean-x29.md
Shows the splash screen with parameters suitable for the application startup scenario.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public void ShowOnStartup(
bool autoClose = true
)
Public Sub ShowOnStartup(
autoClose As Boolean = True
)
| Name | Type | Default | Description |
|---|---|---|---|
| autoClose | Boolean | True |
true, to close the splash screen once the application is initialized; otherwise, false.
|
The ShowOnStartup method calls the Show method with the following parameters:
Show(
owner:null,
startupLocation:WindowStartupLocation.CenterScreen,
trackOwnerPosition:true,
inputBlock:InputBlockMode.None);
Show(
owner:=Nothing,
startupLocation:=WindowStartupLocation.CenterScreen,
trackOwnerPosition:=true,
inputBlock:=InputBlockMode.None)
The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowOnStartup(Boolean) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
splashscreenmanager-startup-test/CS/App.xaml.cs#L35
public static void Test_SplashScreenManagerCore(Func<Window> splashScreenFactory) {
SplashScreenManager.Create(() => {
var w = splashScreenFactory();
wpf-synchronous-theme-preload-with-splashscreen/CS/ThemePreloadwithSplashscreen/App.xaml.cs#L12
static void PreloadThemes() {
SplashScreenManager.CreateThemed().ShowOnStartup();
ApplicationThemeHelper.Preload(PreloadCategories.Grid, PreloadCategories.LayoutControl);
splashscreenmanager-startup-test/VB/App.xaml.vb#L43
Public Shared Sub Test_SplashScreenManagerCore(ByVal splashScreenFactory As Func(Of Window))
Call SplashScreenManager.Create(Function()
Dim w = splashScreenFactory()
wpf-synchronous-theme-preload-with-splashscreen/VB/ThemePreloadwithSplashscreen/App.xaml.vb#L16
Private Shared Sub PreloadThemes()
Call SplashScreenManager.CreateThemed().ShowOnStartup()
Call ApplicationThemeHelper.Preload(PreloadCategories.Grid, PreloadCategories.LayoutControl)
See Also