markus / MarkusAutoUpdate / src / NetSparkle.Samples.HandleEventsYourself / MainWindow.xaml @ d8f5045e
이력 | 보기 | 이력해설 | 다운로드 (3.1 KB)
1 | d8f5045e | taeseongkim | <Window x:Class="NetSparkleUpdater.Samples.HandleEventsYourself.MainWindow" |
---|---|---|---|
2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||
3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||
4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||
5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||
6 | xmlns:local="clr-namespace:NetSparkleUpdater.Samples.HandleEventsYourself" |
||
7 | mc:Ignorable="d" |
||
8 | Title="MainWindow" |
||
9 | Height="450" |
||
10 | Width="600"> |
||
11 | <Grid Margin="10"> |
||
12 | <Grid.ColumnDefinitions>
|
||
13 | <ColumnDefinition Width="*" /> |
||
14 | <ColumnDefinition Width="*" /> |
||
15 | </Grid.ColumnDefinitions>
|
||
16 | <ScrollViewer Grid.Column="0"> |
||
17 | <StackPanel Orientation="Vertical" |
||
18 | Width="Auto" |
||
19 | HorizontalAlignment="Left"> |
||
20 | <TextBlock Text="Look at the code behind to see how each step works!" |
||
21 | TextWrapping="Wrap" |
||
22 | FontWeight="Bold" /> |
||
23 | <Label Content="Step 0: Initialize Sparkle" /> |
||
24 | <Label Content="Step 1: Check for updates" /> |
||
25 | <Button Content="Click me to check for updates" |
||
26 | Click="CheckUpdates_Click" |
||
27 | Width="200" |
||
28 | Margin="50,0,0,0" |
||
29 | HorizontalAlignment="Left" /> |
||
30 | <Label Name="UpdateInfo" |
||
31 | FontStyle="Italic" /> |
||
32 | <Label Content="Step 2: Download the update" /> |
||
33 | <Button Content="Click me to download the update" |
||
34 | Name="DownloadUpdateButton" |
||
35 | Click="DownloadUpdate_Click" |
||
36 | Width="200" |
||
37 | Margin="50,0,0,0" |
||
38 | HorizontalAlignment="Left" /> |
||
39 | <TextBlock Name="DownloadInfo" |
||
40 | FontStyle="Italic" |
||
41 | TextWrapping="Wrap" /> |
||
42 | <Label Content="Step 3: Install the update" /> |
||
43 | <Button Content="Click me to install the update" |
||
44 | Name="InstallUpdateButton" |
||
45 | Click="InstallUpdateButton_Click" |
||
46 | Width="200" |
||
47 | Margin="50,0,0,0" |
||
48 | HorizontalAlignment="Left" /> |
||
49 | </StackPanel>
|
||
50 | </ScrollViewer>
|
||
51 | <ScrollViewer Grid.Column="1"> |
||
52 | <StackPanel Orientation="Vertical" |
||
53 | Margin="4"> |
||
54 | <TextBlock Text="Click below if all steps of the download should be done automatically and the app restarted ASAP" |
||
55 | TextWrapping="Wrap" /> |
||
56 | <Button Content="Click to start the update process" |
||
57 | Name="UpdateAutomaticallyButton" |
||
58 | Click="UpdateAutomaticallyButton_Click" /> |
||
59 | <TextBlock Text="" |
||
60 | Name="RunFullUpdateUpdateStatusLabel" |
||
61 | TextWrapping="Wrap" /> |
||
62 | </StackPanel>
|
||
63 | </ScrollViewer>
|
||
64 | </Grid>
|
||
65 | </Window> |