Back to Devexpress

SplashScreenManager.ShowOnStartup(Boolean) Method

wpf-devexpress-dot-xpf-dot-core-dot-splashscreenmanager-dot-showonstartup-x28-system-dot-boolean-x29.md

latest3.9 KB
Original Source

SplashScreenManager.ShowOnStartup(Boolean) Method

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

Declaration

csharp
public void ShowOnStartup(
    bool autoClose = true
)
vb
Public Sub ShowOnStartup(
    autoClose As Boolean = True
)

Optional Parameters

NameTypeDefaultDescription
autoCloseBooleanTrue

true, to close the splash screen once the application is initialized; otherwise, false.

|

Remarks

The ShowOnStartup method calls the Show method with the following parameters:

csharp
Show(
   owner:null,
   startupLocation:WindowStartupLocation.CenterScreen,
   trackOwnerPosition:true,
   inputBlock:InputBlockMode.None);
vb
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

csharp
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

csharp
static void PreloadThemes() {
    SplashScreenManager.CreateThemed().ShowOnStartup();
    ApplicationThemeHelper.Preload(PreloadCategories.Grid, PreloadCategories.LayoutControl);

splashscreenmanager-startup-test/VB/App.xaml.vb#L43

vb
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

vb
Private Shared Sub PreloadThemes()
    Call SplashScreenManager.CreateThemed().ShowOnStartup()
    Call ApplicationThemeHelper.Preload(PreloadCategories.Grid, PreloadCategories.LayoutControl)

See Also

SplashScreenManager Class

SplashScreenManager Members

DevExpress.Xpf.Core Namespace