blob: c513795ed8d9dcba6d77f178ad95ad156bbecf09 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
|
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="400"
x:Class="UVtools.WPF.Windows.ProgressWindow"
Title="ProgressWindow"
CanResize="False"
ShowInTaskbar="False"
WindowStartupLocation="CenterOwner"
MinWidth="400"
SizeToContent="WidthAndHeight"
SystemDecorations="BorderOnly"
Icon="/Assets/Icons/UVtools.ico"
>
<Border
BorderBrush="WhiteSmoke"
BorderThickness="5"
CornerRadius="5"
>
<Grid RowDefinitions="Auto,Auto,Auto,Auto"
ColumnDefinitions="*"
>
<TextBlock
Grid.Row="0"
Margin="10" Text="{Binding Progress.Title}"/>
<TextBlock
Grid.Row="1"
Margin="10,0,10,10" Text="{Binding Progress.ElapsedTimeStr, StringFormat=Elapsed Time: \{0\}}"/>
<TextBlock
Grid.Row="2"
Margin="10,0,10,10" Text="{Binding Progress.Description}" HorizontalAlignment="Center"/>
<Grid
Grid.Row="3"
RowDefinitions="30" ColumnDefinitions="*,Auto">
<ProgressBar
Grid.Column="0"
Minimum="0"
Maximum="100"
IsIndeterminate="{Binding Progress.IsIndeterminate}"
Value="{Binding Progress.ProgressPercent}" ShowProgressText="True"/>
<Button
IsEnabled="{Binding CanCancel}"
Command="{Binding OnClickCancel}"
Grid.Column="1"
Padding="30,0"
IsCancel="True"
Content="Cancel"
/>
</Grid>
</Grid>
</Border>
</Window>
|