-
Notifications
You must be signed in to change notification settings - Fork 0
/
CustomSplashScreen.xaml
32 lines (32 loc) · 1.53 KB
/
CustomSplashScreen.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<dx:SplashScreenWindow x:Class="WpfSpreadsheetProgressSample.CustomSplashScreen"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxt="http://schemas.devexpress.com/winfx/2008/xaml/core/themekeys"
xmlns:mvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
BorderBrush="{DynamicResource {dxt:BrushesThemeKey ResourceKey=PanelBorder}}"
BorderThickness="1"
AllowTheming="True"
Height="120"
Width="300"
DataContext="{x:Static mvvm:DXSplashScreenViewModel.DesignTimeData}">
<dx:BackgroundPanel>
<StackPanel VerticalAlignment="Center" Margin="16">
<TextBlock Text="{Binding Title}"
FontSize="16"
HorizontalAlignment="Left"
Margin="0,0,0,8"/>
<ProgressBar IsIndeterminate="False"
Height="20"
Width="240"
Value="{Binding Progress}"/>
<TextBlock Text="Cancel"
HorizontalAlignment="Right"
Margin="0,8,0,0"
Foreground="#FF1686F5"
TextDecorations="Underline"
Cursor="Hand"
MouseLeftButtonUp="Cancel_Click" />
</StackPanel>
</dx:BackgroundPanel>
</dx:SplashScreenWindow>