|
2 | 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:mahapps="http://metro.mahapps.com/winfx/xaml/controls" |
4 | 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | | - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
6 | | - Width="500" Height="200" ResizeMode="NoResize" ShowInTaskbar="False" WindowStyle="None" ShowTitleBar="False" GlowBrush="{DynamicResource AccentColorBrush}" |
7 | | - ShowCloseButton="False" WindowStartupLocation="CenterOwner" > |
| 5 | + Width="500" Height="400" TitleCaps="False" ShowInTaskbar="False" GlowBrush="{DynamicResource AccentColorBrush}" WindowStartupLocation="CenterOwner" WindowStyle="None" > |
8 | 6 | <mahapps:MetroWindow.Resources> |
9 | 7 | <ResourceDictionary> |
10 | 8 | <ResourceDictionary.MergedDictionaries> |
|
17 | 15 | </ResourceDictionary> |
18 | 16 | </mahapps:MetroWindow.Resources> |
19 | 17 | <Grid> |
| 18 | + <Image Name="Icon" Source="/SPCode;component/Resources/Icon.ico" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,5,5" Width="40" Height="40"/> |
20 | 19 | <mahapps:ProgressRing Name="Progress" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="5,5,5,5" Width="40" Height="40" IsActive="False" IsLarge="False" IsHitTestVisible="False" /> |
21 | | - <TextBlock Name="MainLine" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="50,0,0,0" FontSize="16" Foreground="{StaticResource AccentColorBrush}" Text="An update is available. Do you want to update?" IsHitTestVisible="False" /> |
| 20 | + <TextBlock Name="MainLine" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="50,0,0,0" FontSize="16" Foreground="{StaticResource AccentColorBrush}" Text="Update now?" IsHitTestVisible="False" /> |
22 | 21 | <TextBlock Name="SubLine" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="50,25,0,0" FontSize="14" IsHitTestVisible="False" /> |
23 | 22 | <Button Name="ActionYesButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="50,25,0,0" Content="Yes" Width="50" Click="ActionYesButton_Click" /> |
24 | 23 | <Button Name="ActionNoButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="110,25,0,0" Content="No" Width="50" Click="ActionNoButton_Click" /> |
25 | | - <TextBox Name="DescriptionBox" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0,55,0,0" Height="145" VerticalScrollBarVisibility="Visible" IsReadOnly="True" /> |
26 | | - </Grid> |
| 24 | + <RichTextBox Name="DescriptionBox" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,55,0,0" VerticalScrollBarVisibility="Visible" IsReadOnly="True" /> |
| 25 | + <Button x:Name="ActionGithubButton" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="170,25,0,0" Content="View on Github" Width="110" Click="ActionGithubButton_Click" /> |
| 26 | + </Grid> |
27 | 27 | </mahapps:MetroWindow> |
0 commit comments