UserProfileImageSelectorView.axaml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
  7. xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale"
  8. xmlns:viewModles="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  9. Focusable="True"
  10. mc:Ignorable="d"
  11. x:Class="Ryujinx.Ava.UI.Views.User.UserProfileImageSelectorView"
  12. x:CompileBindings="True"
  13. x:DataType="viewModles:UserProfileImageSelectorViewModel"
  14. Width="500"
  15. d:DesignWidth="500">
  16. <Design.DataContext>
  17. <viewModles:UserProfileImageSelectorViewModel />
  18. </Design.DataContext>
  19. <Grid
  20. HorizontalAlignment="Stretch"
  21. VerticalAlignment="Center">
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="Auto" />
  24. <RowDefinition Height="70" />
  25. <RowDefinition Height="Auto" />
  26. </Grid.RowDefinitions>
  27. <TextBlock
  28. Grid.Row="0"
  29. TextWrapping="Wrap"
  30. HorizontalAlignment="Left"
  31. TextAlignment="Left"
  32. Text="{locale:Locale ProfileImageSelectionNote}" />
  33. <StackPanel
  34. Grid.Row="2"
  35. Spacing="10"
  36. HorizontalAlignment="Left"
  37. Orientation="Horizontal">
  38. <Button
  39. Width="50"
  40. MinWidth="50"
  41. Click="GoBack">
  42. <ui:SymbolIcon Symbol="Back" />
  43. </Button>
  44. </StackPanel>
  45. <StackPanel
  46. Grid.Row="2"
  47. Spacing="10"
  48. HorizontalAlignment="Right"
  49. Orientation="Horizontal">
  50. <Button
  51. Name="Import"
  52. Click="Import_OnClick">
  53. <TextBlock Text="{locale:Locale ProfileImageSelectionImportImage}" />
  54. </Button>
  55. <Button
  56. Name="SelectFirmwareImage"
  57. IsEnabled="{Binding FirmwareFound}"
  58. Click="SelectFirmwareImage_OnClick">
  59. <TextBlock Text="{locale:Locale ProfileImageSelectionSelectAvatar}" />
  60. </Button>
  61. </StackPanel>
  62. </Grid>
  63. </UserControl>