ErrorAppletWindow.axaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <Window
  2. x:Class="Ryujinx.Ava.Ui.Applet.ErrorAppletWindow"
  3. xmlns="https://github.com/avaloniaui"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:window="clr-namespace:Ryujinx.Ava.Ui.Windows"
  9. Title="{locale:Locale ErrorWindowTitle}"
  10. Width="450"
  11. Height="340"
  12. CanResize="False"
  13. SizeToContent="Height"
  14. mc:Ignorable="d"
  15. Focusable="True">
  16. <Grid
  17. Margin="20"
  18. HorizontalAlignment="Stretch"
  19. VerticalAlignment="Stretch">
  20. <Grid.RowDefinitions>
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="*" />
  23. <RowDefinition Height="Auto" />
  24. </Grid.RowDefinitions>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="Auto" />
  27. <ColumnDefinition />
  28. </Grid.ColumnDefinitions>
  29. <Image
  30. Grid.Row="1"
  31. Grid.RowSpan="2"
  32. Grid.Column="0"
  33. Height="80"
  34. MinWidth="50"
  35. Margin="5,10,20,10"
  36. Source="resm:Ryujinx.Ui.Common.Resources.Logo_Ryujinx.png?assembly=Ryujinx.Ui.Common" />
  37. <TextBlock
  38. Grid.Row="1"
  39. Grid.Column="1"
  40. Margin="10"
  41. VerticalAlignment="Stretch"
  42. Text="{Binding Message}"
  43. TextWrapping="Wrap" />
  44. <StackPanel
  45. Name="ButtonStack"
  46. Grid.Row="2"
  47. Grid.Column="1"
  48. Margin="10"
  49. HorizontalAlignment="Right"
  50. Orientation="Horizontal"
  51. Spacing="10" />
  52. </Grid>
  53. </Window>