-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBusyWindow.xaml
44 lines (40 loc) · 2.23 KB
/
BusyWindow.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
33
34
35
36
37
38
39
40
41
42
43
44
<Window x:Class="PdfFunctions.BusyWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="BusyIndicatorWindow" Height="55" Width="320"
x:Name="root"
AllowsTransparency="True" WindowStyle="None">
<Window.Resources>
<LinearGradientBrush x:Key="panelBackground" EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="1" />
<GradientStop Color="#FF1B1B1B" />
</LinearGradientBrush>
<Style x:Key="panelMessageText" TargetType="{x:Type TextBlock}">
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Margin" Value="0,5,0,0" />
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontSize" Value="16" />
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="FontFamily" Value="Arial" />
<Setter Property="SnapsToDevicePixels" Value="True" />
</Style>
</Window.Resources>
<Window.Background>
<SolidColorBrush Opacity="0" Color="White"/>
</Window.Background>
<DockPanel Background="{StaticResource panelBackground}">
<Path Data="M0,44.956 L312.00641,44.956" Height="1" Margin="0,0.25,0,0" Stretch="Fill" DockPanel.Dock="Top" Stroke="Black" />
<Path Data="M0,44.956 L312.00641,44.956" Height="1" Margin="0,0.25,0,0" Stretch="Fill" DockPanel.Dock="Top" Stroke="#FF2F2F2F" />
<DockPanel>
<TextBlock x:Name="txtMessage" DockPanel.Dock="Top"
Style="{StaticResource panelMessageText}"
Text=" Processing your request, please wait..."
Foreground="#FFA1C3D2" Height="20"/>
<TextBlock x:Name="progress" DockPanel.Dock="Top" HorizontalAlignment="Center"
Style="{StaticResource panelMessageText}"
Text="{Binding ElementName=root, Path=CompleteText, UpdateSourceTrigger=PropertyChanged}"
Foreground="#FFA1C3D2" Height="15"/>
</DockPanel>
</DockPanel>
</Window>