markus / MarkusAutoUpdate / src / NetSparkle.UI.Avalonia / DownloadProgressWindow.xaml @ d8f5045e
이력 | 보기 | 이력해설 | 다운로드 (2.67 KB)
1 |
<cont:BaseWindow xmlns="https://github.com/avaloniaui" |
---|---|
2 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
4 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
5 |
xmlns:cont="clr-namespace:NetSparkleUpdater.UI.Avalonia.Controls" |
6 |
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" |
7 |
x:Class="NetSparkleUpdater.UI.Avalonia.DownloadProgressWindow" |
8 |
Width="600" |
9 |
MaxWidth="600" |
10 |
Title="Software Update" |
11 |
CanResize="False" |
12 |
SizeToContent="Height" |
13 |
WindowStartupLocation="CenterScreen"> |
14 |
|
15 |
<Grid Margin="5" |
16 |
x:Name="MainGrid" |
17 |
ColumnDefinitions="Auto, *" |
18 |
RowDefinitions="Auto, Auto, Auto, Auto, Auto"> |
19 |
<Image Grid.Row="0" |
20 |
Grid.RowSpan="2" |
21 |
Grid.Column="0" |
22 |
x:Name="AppIcon" |
23 |
VerticalAlignment="Top" |
24 |
HorizontalAlignment="Left" |
25 |
Width="48" |
26 |
Height="48" |
27 |
Margin="10,10,5,0" /> |
28 |
<TextBlock Name="DownloadingTitle" |
29 |
Grid.Row="0" |
30 |
Grid.Column="1" |
31 |
Text="{Binding DownloadingTitle}" |
32 |
HorizontalAlignment="Left" |
33 |
FontWeight="Bold" |
34 |
FontSize="20" /> |
35 |
<TextBlock Name="DownloadProgress" |
36 |
Grid.Row="1" |
37 |
Grid.Column="1" |
38 |
Text="{Binding UserReadableDownloadProgress}" |
39 |
HorizontalAlignment="Left" |
40 |
FontWeight="Bold" |
41 |
FontSize="20" /> |
42 |
<ProgressBar Name="ProgressBar" |
43 |
Grid.Row="2" |
44 |
Grid.Column="0" |
45 |
Grid.ColumnSpan="2" |
46 |
Minimum="0" |
47 |
Maximum="100" |
48 |
IsIndeterminate="False" |
49 |
Height="25" |
50 |
Value="{Binding DownloadProgress}" |
51 |
Margin="5,0,5,0" /> |
52 |
<TextBlock TextWrapping="Wrap" |
53 |
Name="ErrorMessage" |
54 |
Grid.Row="3" |
55 |
Grid.Column="0" |
56 |
Margin="5,5,0,5" |
57 |
Grid.ColumnSpan="2" |
58 |
Text="{Binding ErrorMessageText}" |
59 |
IsVisible="{Binding IsErrorMessageVisible}" |
60 |
HorizontalAlignment="Left" |
61 |
FontWeight="Regular" |
62 |
FontSize="16" /> |
63 |
<Button Name="ActionButton" |
64 |
IsVisible="{Binding IsActionButtonVisible}" |
65 |
Grid.Row="4" |
66 |
Grid.Column="0" |
67 |
Grid.ColumnSpan="2" |
68 |
Content="{Binding ActionButtonTitle}" |
69 |
FontSize="16" |
70 |
HorizontalAlignment="Center" |
71 |
Padding="10,5,10,5" |
72 |
Margin="0,10,0,10" |
73 |
Click="ActionButton_Click" /> |
74 |
</Grid>
|
75 |
</cont:BaseWindow>
|