mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
50 lines
2.2 KiB
XML
50 lines
2.2 KiB
XML
<Window x:Class="OwnCord.Client.Views.UpdateDialog"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="Update Available"
|
|
Width="500" Height="400"
|
|
WindowStartupLocation="CenterScreen"
|
|
ResizeMode="NoResize">
|
|
<Grid Margin="20">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock Grid.Row="0" FontSize="18" FontWeight="Bold" Margin="0,0,0,10"
|
|
Text="A new version of OwnCord is available!"/>
|
|
|
|
<StackPanel Grid.Row="1" Margin="0,0,0,10">
|
|
<TextBlock>
|
|
<Run Text="Current version: "/>
|
|
<Run Text="{Binding CurrentVersion, Mode=OneWay}" FontWeight="SemiBold"/>
|
|
</TextBlock>
|
|
<TextBlock>
|
|
<Run Text="New version: "/>
|
|
<Run Text="{Binding NewVersion, Mode=OneWay}" FontWeight="SemiBold"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
|
|
<GroupBox Grid.Row="2" Header="Release Notes" Margin="0,0,0,10">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<TextBlock Text="{Binding ReleaseNotes}" TextWrapping="Wrap" Margin="5"/>
|
|
</ScrollViewer>
|
|
</GroupBox>
|
|
|
|
<TextBlock Grid.Row="3" Text="{Binding StatusText}" Margin="0,0,0,10"
|
|
Visibility="{Binding IsDownloading, Converter={StaticResource BoolToVisibility}}"/>
|
|
|
|
<StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Content="Remind Me Later" Command="{Binding RemindLaterCommand}"
|
|
Margin="0,0,10,0" Padding="15,8"/>
|
|
<Button Content="Skip This Version" Command="{Binding SkipVersionCommand}"
|
|
Margin="0,0,10,0" Padding="15,8"/>
|
|
<Button Content="Update Now" Command="{Binding UpdateNowCommand}"
|
|
Padding="15,8" FontWeight="Bold"/>
|
|
</StackPanel>
|
|
</Grid>
|
|
</Window>
|