markus / MarkusAutoUpdate / src / NetSparkle.UI.WPF / UpdateAvailableWindow.xaml @ c7555c83
이력 | 보기 | 이력해설 | 다운로드 (4.05 KB)
1 | d8f5045e | taeseongkim | <cont:BaseWindow x:Class="NetSparkleUpdater.UI.WPF.UpdateAvailableWindow" |
---|---|---|---|
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:cont="clr-namespace:NetSparkleUpdater.UI.WPF.Controls" |
||
8 | mc:Ignorable="d" |
||
9 | x:Name="UpdateAvailableWindowControl" |
||
10 | Title="Software Update" |
||
11 | MinWidth="500" |
||
12 | MinHeight="350" |
||
13 | Width="700" |
||
14 | Height="600" |
||
15 | WindowStartupLocation="CenterScreen"> |
||
16 | <cont:BaseWindow.Resources>
|
||
17 | <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" /> |
||
18 | </cont:BaseWindow.Resources>
|
||
19 | <Grid Background="#EEEEEE"> |
||
20 | <Grid.ColumnDefinitions>
|
||
21 | <ColumnDefinition Width="Auto" /> |
||
22 | <ColumnDefinition Width="*" /> |
||
23 | </Grid.ColumnDefinitions>
|
||
24 | <Grid.RowDefinitions>
|
||
25 | <RowDefinition Height="Auto" /> |
||
26 | <RowDefinition Height="Auto" /> |
||
27 | <RowDefinition Height="*" |
||
28 | x:Name="ReleaseNotesRow" /> |
||
29 | <RowDefinition Height="Auto" /> |
||
30 | </Grid.RowDefinitions>
|
||
31 | <Image Grid.Row="0" |
||
32 | Grid.RowSpan="3" |
||
33 | Grid.Column="0" |
||
34 | Source="{Binding ElementName=UpdateAvailableWindowControl, Path=Icon}" |
||
35 | VerticalAlignment="Top" |
||
36 | HorizontalAlignment="Left" |
||
37 | Width="48" |
||
38 | Height="48" |
||
39 | Margin="10,10,0,0" /> |
||
40 | <TextBlock Name="TitleHeader" |
||
41 | Text="{Binding TitleHeaderText}" |
||
42 | TextWrapping="Wrap" |
||
43 | FontSize="16" |
||
44 | Margin="10,5,0,0" |
||
45 | Grid.Column="1" |
||
46 | Grid.Row="0" /> |
||
47 | <TextBlock Name="InfoText" |
||
48 | Text="{Binding InfoText}" |
||
49 | FontSize="14" |
||
50 | TextWrapping="Wrap" |
||
51 | Margin="10,5,0,0" |
||
52 | Grid.Column="1" |
||
53 | Grid.Row="1" /> |
||
54 | <WebBrowser Name="ReleaseNotesBrowser" |
||
55 | Visibility="{Binding AreReleaseNotesVisible, Converter={StaticResource BooleanToVisibilityConverter}}" |
||
56 | AllowDrop="False" |
||
57 | Grid.Column="1" |
||
58 | Grid.Row="2" |
||
59 | Margin="10,5,10,0" /> |
||
60 | <Button Name="SkipButton" |
||
61 | IsEnabled="{Binding IsSkipEnabled}" |
||
62 | Visibility="{Binding IsSkipVisible, Converter={StaticResource BooleanToVisibilityConverter}}" |
||
63 | Content="Skip this version" |
||
64 | Command="{Binding Skip}" |
||
65 | Margin="10,10,0,10" |
||
66 | Padding="5" |
||
67 | Grid.Column="1" |
||
68 | Grid.Row="3" |
||
69 | HorizontalAlignment="Left" |
||
70 | VerticalAlignment="Center" /> |
||
71 | <StackPanel Orientation="Horizontal" |
||
72 | HorizontalAlignment="Right" |
||
73 | VerticalAlignment="Center" |
||
74 | Grid.Column="1" |
||
75 | Grid.Row="3" |
||
76 | Margin="0,10,4,10"> |
||
77 | <Button Name="RemindMeLaterButton" |
||
78 | IsEnabled="{Binding IsRemindMeLaterEnabled}" |
||
79 | Visibility="{Binding IsRemindMeLaterVisible, Converter={StaticResource BooleanToVisibilityConverter}}" |
||
80 | Content="Remind me later" |
||
81 | HorizontalAlignment="Right" |
||
82 | Command="{Binding RemindMeLater}" |
||
83 | Margin="0,0,8,0" |
||
84 | Padding="5" /> |
||
85 | <Button Name="DownloadInstallButton" |
||
86 | Content="Download/Install" |
||
87 | Command="{Binding DownloadInstall}" |
||
88 | Margin="0,0,0,0" |
||
89 | Padding="5" /> |
||
90 | </StackPanel>
|
||
91 | </Grid>
|
||
92 | </cont:BaseWindow> |