aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/Ui/Windows/UpdaterWindow.axaml
blob: 31654a22616dda0f6fed2eacbf1d290654c008c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<window:StyleableWindow xmlns="https://github.com/avaloniaui"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                        mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="350"
                        xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
                        x:Class="Ryujinx.Ava.Ui.Windows.UpdaterWindow"
                        xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
                        CanResize="False"
                        SizeToContent="Height"
                        Width="500" MinHeight="500" Height="500"
                        WindowStartupLocation="CenterOwner"
                        MinWidth="500"
                        Title="Ryujinx Updater">
    <Grid Margin="20" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="1" HorizontalAlignment="Stretch" TextAlignment="Center" Height="20" Name="MainText" />
        <TextBlock Height="20" HorizontalAlignment="Stretch" TextAlignment="Center" Name="SecondaryText" Grid.Row="2" />
        <ProgressBar IsVisible="False" HorizontalAlignment="Stretch" Name="ProgressBar" Maximum="100" Minimum="0"
                     Margin="20" Grid.Row="3" />
        <StackPanel IsVisible="False" Name="ButtonBox" Orientation="Horizontal" Spacing="20" Grid.Row="4"
                    HorizontalAlignment="Right">
            <Button Command="{Binding YesPressed}" MinWidth="50">
                <TextBlock TextAlignment="Center" Text="{locale:Locale InputDialogYes}" />
            </Button>
            <Button Command="{Binding NoPressed}" MinWidth="50">
                <TextBlock TextAlignment="Center" Text="{locale:Locale InputDialogNo}" />
            </Button>
        </StackPanel>
    </Grid>
</window:StyleableWindow>