UpdaterWindow.axaml 2.1 KB

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