Back to Devexpress

ISplashScreenManagerService.Show(String, Int32) Method

corelibraries-devexpress-dot-mvvm-dot-isplashscreenmanagerservice-dot-show-x28-system-dot-string-system-dot-int32-x29.md

latest3.7 KB
Original Source

ISplashScreenManagerService.Show(String, Int32) Method

Displays the splash screen.

Namespace : DevExpress.Mvvm

Assembly : DevExpress.Mvvm.v25.2.dll

NuGet Packages : DevExpress.Mvvm, DevExpress.Win.Navigation

Declaration

csharp
void Show(
    string documentType = null,
    int timeout = 700
)
vb
Sub Show(
    documentType As String = Nothing,
    timeout As Integer = 700
)

Optional Parameters

NameTypeDefaultDescription
documentTypeStringnull

The string value that identifies the document type.

| | timeout | Int32 | 700 |

A time interval for which the splash screen initialization process is prioritized over the main application, in milliseconds.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Show(String, Int32) 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.

wpf-splash-screen-show-cancelable-wait-indicator/CS/SplashScreenManagerExample/ViewModels/MainViewModel.cs#L29

csharp
this.InitSplashScreenViewModel(this.SplashScreenManagerService.ViewModel);
this.SplashScreenManagerService.Show();
this.RunBackgroundWorker();

splashscreenmanagerservice/CS/ViewModel/MainViewModel.cs#L22

csharp
SplashScreenManagerService.ViewModel.Logo = new Uri("../../Images/Logo.png", UriKind.Relative);
SplashScreenManagerService.Show();
Thread.Sleep(TimeSpan.FromSeconds(Delay));

wpf-splash-screen-show-cancelable-wait-indicator/VB/SplashScreenManagerExample/ViewModels/MainViewModel.vb#L35

vb
InitSplashScreenViewModel(SplashScreenManagerService.ViewModel)
SplashScreenManagerService.Show()
RunBackgroundWorker()

splashscreenmanagerservice/VB/ViewModel/MainViewModel.vb#L28

vb
SplashScreenManagerService.ViewModel.Logo = New Uri("../../Images/Logo.png", UriKind.Relative)
SplashScreenManagerService.Show()
Thread.Sleep(TimeSpan.FromSeconds(Delay))

See Also

ISplashScreenManagerService Interface

ISplashScreenManagerService Members

DevExpress.Mvvm Namespace