wpf-devexpress-dot-xpf-dot-core-dot-splashscreenmanager-dot-create-x28-system-dot-func-system-dot-windows-dot-window-devexpress-dot-mvvm-dot-dxsplashscreenviewmodel-x29.md
Creates a custom splash screen.
Namespace : DevExpress.Xpf.Core
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public static SplashScreenManager Create(
Func<Window> splashScreenWindowFactory,
DXSplashScreenViewModel viewModel = null
)
Public Shared Function Create(
splashScreenWindowFactory As Func(Of Window),
viewModel As DXSplashScreenViewModel = Nothing
) As SplashScreenManager
| Name | Type | Description |
|---|---|---|
| splashScreenWindowFactory | Func<Window> |
A function that creates the splash screen window.
|
| Name | Type | Default | Description |
|---|---|---|---|
| viewModel | DXSplashScreenViewModel | null |
A view model that specifies options for the splash screen.
|
| Type | Description |
|---|---|
| SplashScreenManager |
A DevExpress.Xpf.Core.SplashScreenManager object that represents the created splash screen.
|
The following example illustrates how to create a custom waiting indicator:
SplashScreenManager.Create(() => new SplashScreenWindow() {
AllowTheming = true,
Content = new WaitIndicator() { DeferedVisibility = true }
});
SplashScreenManager.Create(Function() New SplashScreenWindow() With {
.AllowTheming = True,
.Content = New WaitIndicator() With {.DeferedVisibility = True}
})
Refer to the How to: Create a Custom Splash Screen tutorial for more information.
Use the Show method to display the splash screen.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Create(Func<Window>, DXSplashScreenViewModel) 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.
// in the splash screen.
splashScreenManager = SplashScreenManager.Create(() => new CustomSplashScreen(cancellationTokenSource), new DXSplashScreenViewModel {
Title = displayName,
' in the splash screen.
splashScreenManager = SplashScreenManager.Create(Function() New CustomSplashScreen(cancellationTokenSource), New DXSplashScreenViewModel With {
.Title = displayName,
See Also