|
| 1 | +<atc:NiceWindow |
| 2 | + x:Class="Atc.Installer.Wpf.App.Dialogs.CheckForUpdatesBoxDialog" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:atc="https://github.com/atc-net/atc-wpf/tree/main/schemas" |
| 6 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 7 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 8 | + Title="Check for updates" |
| 9 | + Width="300" |
| 10 | + Height="250" |
| 11 | + Background="{DynamicResource AtcApps.Brushes.Dialog.Background}" |
| 12 | + ShowCloseButton="False" |
| 13 | + ShowMaxRestoreButton="False" |
| 14 | + ShowMinButton="False" |
| 15 | + WindowStartupLocation="CenterScreen" |
| 16 | + WindowStyle="SingleBorderWindow" |
| 17 | + mc:Ignorable="d"> |
| 18 | + |
| 19 | + <atc:GridEx Margin="20" Rows="*,Auto"> |
| 20 | + <atc:UniformSpacingPanel |
| 21 | + Grid.Row="0" |
| 22 | + Orientation="Vertical" |
| 23 | + Spacing="20"> |
| 24 | + |
| 25 | + <TextBlock FontWeight="Bold" Text="Atc.Installer" /> |
| 26 | + |
| 27 | + <StackPanel Orientation="Horizontal"> |
| 28 | + <TextBlock Text="Version: " /> |
| 29 | + <TextBlock x:Name="VersionTextBlock" Text="1.0.0.0" /> |
| 30 | + </StackPanel> |
| 31 | + |
| 32 | + <StackPanel x:Name="NoVersionUpdatesContainer" Orientation="Horizontal"> |
| 33 | + <TextBlock Text="No new updates." /> |
| 34 | + </StackPanel> |
| 35 | + |
| 36 | + <atc:UniformSpacingPanel |
| 37 | + x:Name="LatestVersionContainer" |
| 38 | + Orientation="Vertical" |
| 39 | + Spacing="20"> |
| 40 | + <StackPanel Orientation="Horizontal"> |
| 41 | + <TextBlock Foreground="DarkOrange" Text="Latest version: " /> |
| 42 | + <TextBlock |
| 43 | + x:Name="LatestVersionTextBlock" |
| 44 | + Foreground="DarkOrange" |
| 45 | + Text="1.0.0.0" /> |
| 46 | + </StackPanel> |
| 47 | + <TextBlock x:Name="LatestLinkTextBlock" HorizontalAlignment="Right"> |
| 48 | + <Hyperlink |
| 49 | + x:Name="LatestVersionHyperlink" |
| 50 | + Click="OnLatestVersionHyperlinkClick" |
| 51 | + NavigateUri="..."> |
| 52 | + <Run Text="Download latest MSI file" /> |
| 53 | + </Hyperlink> |
| 54 | + </TextBlock> |
| 55 | + </atc:UniformSpacingPanel> |
| 56 | + |
| 57 | + </atc:UniformSpacingPanel> |
| 58 | + <Button |
| 59 | + Grid.Row="1" |
| 60 | + Width="100" |
| 61 | + Margin="10" |
| 62 | + HorizontalAlignment="Right" |
| 63 | + Click="OnOk" |
| 64 | + Content="OK" /> |
| 65 | + </atc:GridEx> |
| 66 | + |
| 67 | +</atc:NiceWindow> |
| 68 | + |
0 commit comments