markus / MarkusAutoUpdate / src / NetSparkle.UI.WPF / DownloadProgressWindow.xaml @ 57ae0756
이력 | 보기 | 이력해설 | 다운로드 (3.95 KB)
1 | d8f5045e | taeseongkim | <controls:BaseWindow x:Class="NetSparkleUpdater.UI.WPF.DownloadProgressWindow" |
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
5 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
6 | xmlns:local="clr-namespace:NetSparkleUpdater.UI.WPF" |
||
7 | xmlns:controls="clr-namespace:NetSparkleUpdater.UI.WPF.Controls" |
||
8 | mc:Ignorable="d" |
||
9 | Width="600" |
||
10 | MaxWidth="600" |
||
11 | Title="Software Update" |
||
12 | ResizeMode="NoResize" |
||
13 | SizeToContent="Height" |
||
14 | x:Name="DownloadProgressWindowControl" |
||
15 | d:DesignHeight="250" |
||
16 | d:DesignWidth="800" |
||
17 | WindowStartupLocation="CenterScreen"> |
||
18 | <controls:BaseWindow.Resources>
|
||
19 | <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> |
||
20 | </controls:BaseWindow.Resources>
|
||
21 | <Grid Margin="5" |
||
22 | x:Name="MainGrid"> |
||
23 | <Grid.ColumnDefinitions>
|
||
24 | <ColumnDefinition Width="Auto" /> |
||
25 | <ColumnDefinition Width="*" /> |
||
26 | </Grid.ColumnDefinitions>
|
||
27 | <Grid.RowDefinitions>
|
||
28 | <RowDefinition Height="Auto" /> |
||
29 | <RowDefinition Height="Auto" /> |
||
30 | <RowDefinition Height="Auto" /> |
||
31 | <RowDefinition Height="Auto" /> |
||
32 | <RowDefinition Height="Auto" /> |
||
33 | </Grid.RowDefinitions>
|
||
34 | <Image Grid.Row="0" |
||
35 | Grid.RowSpan="2" |
||
36 | Grid.Column="0" |
||
37 | Source="{Binding ElementName=DownloadProgressWindowControl, Path=Icon}" |
||
38 | VerticalAlignment="Top" |
||
39 | HorizontalAlignment="Left" |
||
40 | Width="48" |
||
41 | Height="48" |
||
42 | Margin="10,10,5,0" /> |
||
43 | <TextBlock Name="DownloadingTitle" |
||
44 | TextWrapping="Wrap" |
||
45 | Grid.Row="0" |
||
46 | Grid.Column="1" |
||
47 | Text="{Binding DownloadingTitle}" |
||
48 | HorizontalAlignment="Left" |
||
49 | FontWeight="Bold" |
||
50 | FontSize="24" /> |
||
51 | <Label Name="DownloadProgress" |
||
52 | Grid.Row="1" |
||
53 | Grid.Column="1" |
||
54 | Content="{Binding UserReadableDownloadProgress}" |
||
55 | HorizontalAlignment="Left" |
||
56 | FontWeight="Bold" |
||
57 | FontSize="20" /> |
||
58 | <ProgressBar Name="ProgressBar" |
||
59 | Grid.Row="2" |
||
60 | Grid.Column="0" |
||
61 | Grid.ColumnSpan="2" |
||
62 | Minimum="0" |
||
63 | Maximum="100" |
||
64 | IsIndeterminate="False" |
||
65 | Height="20" |
||
66 | Value="{Binding DownloadProgress}" |
||
67 | Margin="5,0,5,0" /> |
||
68 | <TextBlock TextWrapping="Wrap" |
||
69 | Name="ErrorMessage" |
||
70 | Grid.Row="3" |
||
71 | Grid.Column="0" |
||
72 | Margin="5,5,0,5" |
||
73 | Grid.ColumnSpan="2" |
||
74 | Text="{Binding ErrorMessageText}" |
||
75 | Visibility="{Binding IsErrorMessageVisible, Converter={StaticResource BooleanToVisibilityConverter}}" |
||
76 | HorizontalAlignment="Left" |
||
77 | FontWeight="Regular" |
||
78 | FontSize="16" /> |
||
79 | <Button Name="ActionButton" |
||
80 | Visibility="{Binding IsActionButtonVisible, Converter={StaticResource BooleanToVisibilityConverter}}" |
||
81 | Grid.Row="4" |
||
82 | Grid.Column="0" |
||
83 | Grid.ColumnSpan="2" |
||
84 | Content="{Binding ActionButtonTitle}" |
||
85 | FontSize="16" |
||
86 | HorizontalAlignment="Center" |
||
87 | Padding="10,5,10,5" |
||
88 | Margin="0,10,0,10" |
||
89 | Click="ActionButton_Click" /> |
||
90 | </Grid>
|
||
91 | </controls:BaseWindow> |