ErrorAppletWindow.axaml 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <Window 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. xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
  6. mc:Ignorable="d"
  7. x:Class="Ryujinx.Ava.Ui.Applet.ErrorAppletWindow"
  8. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  9. CanResize="False"
  10. SizeToContent="Height"
  11. Width="450"
  12. Height="340"
  13. Title="{locale:Locale ErrorWindowTitle}">
  14. <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="20">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="Auto" />
  17. <RowDefinition Height="*" />
  18. <RowDefinition Height="Auto" />
  19. </Grid.RowDefinitions>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="Auto" />
  22. <ColumnDefinition />
  23. </Grid.ColumnDefinitions>
  24. <Image Grid.Row="1" Grid.RowSpan="2" Margin="5, 10, 20 , 10" Grid.Column="0"
  25. Source="resm:Ryujinx.Ui.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.Ui.Common" Height="80" MinWidth="50" />
  26. <TextBlock Grid.Row="1" Margin="10" Grid.Column="1" VerticalAlignment="Stretch" TextWrapping="Wrap"
  27. Text="{Binding Message}" />
  28. <StackPanel Name="ButtonStack" Margin="10" Spacing="10" Grid.Row="2" Grid.Column="1"
  29. HorizontalAlignment="Right" Orientation="Horizontal" />
  30. </Grid>
  31. </Window>