ProfileImageSelectionDialog.axaml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <UserControl
  2. xmlns="https://github.com/avaloniaui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  7. mc:Ignorable="d"
  8. x:Class="Ryujinx.Ava.UI.Controls.ProfileImageSelectionDialog"
  9. Focusable="True">
  10. <Grid
  11. HorizontalAlignment="Stretch"
  12. VerticalAlignment="Center"
  13. Margin="5,10,5, 5">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition Height="Auto" />
  17. <RowDefinition Height="70" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. </Grid.RowDefinitions>
  21. <TextBlock
  22. FontWeight="Bold"
  23. FontSize="18"
  24. HorizontalAlignment="Center"
  25. Grid.Row="1"
  26. Text="{locale:Locale ProfileImageSelectionHeader}" />
  27. <TextBlock
  28. FontWeight="Bold"
  29. Grid.Row="2"
  30. Margin="10"
  31. MaxWidth="400"
  32. TextWrapping="Wrap"
  33. HorizontalAlignment="Center"
  34. TextAlignment="Center"
  35. Text="{locale:Locale ProfileImageSelectionNote}" />
  36. <StackPanel
  37. Margin="5,0"
  38. Spacing="10"
  39. Grid.Row="4"
  40. HorizontalAlignment="Center"
  41. Orientation="Horizontal">
  42. <Button
  43. Name="Import"
  44. Click="Import_OnClick"
  45. Width="200">
  46. <TextBlock Text="{locale:Locale ProfileImageSelectionImportImage}" />
  47. </Button>
  48. <Button
  49. Name="SelectFirmwareImage"
  50. IsEnabled="{Binding FirmwareFound}"
  51. Click="SelectFirmwareImage_OnClick"
  52. Width="200">
  53. <TextBlock Text="{locale:Locale ProfileImageSelectionSelectAvatar}" />
  54. </Button>
  55. </StackPanel>
  56. </Grid>
  57. </UserControl>