UserRecoverer.axaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
  8. xmlns:viewModels="clr-namespace:Ryujinx.Ava.UI.ViewModels"
  9. mc:Ignorable="d"
  10. d:DesignWidth="800"
  11. d:DesignHeight="450"
  12. MinWidth="500"
  13. MinHeight="400"
  14. x:Class="Ryujinx.Ava.UI.Controls.UserRecoverer"
  15. Focusable="True">
  16. <Design.DataContext>
  17. <viewModels:UserProfileViewModel />
  18. </Design.DataContext>
  19. <Grid HorizontalAlignment="Stretch"
  20. VerticalAlignment="Stretch">
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="Auto"/>
  23. <RowDefinition Height="Auto"/>
  24. <RowDefinition/>
  25. </Grid.RowDefinitions>
  26. <Button Grid.Row="0"
  27. Margin="5"
  28. Height="30"
  29. Width="50"
  30. MinWidth="50"
  31. HorizontalAlignment="Left"
  32. Command="{Binding GoBack}">
  33. <ui:SymbolIcon Symbol="Back"/>
  34. </Button>
  35. <TextBlock Grid.Row="1"
  36. Text="{locale:Locale UserProfilesRecoverHeading}"/>
  37. <ListBox
  38. Margin="5"
  39. Grid.Row="2"
  40. HorizontalAlignment="Stretch"
  41. VerticalAlignment="Stretch"
  42. Items="{Binding LostProfiles}">
  43. <ListBox.ItemTemplate>
  44. <DataTemplate>
  45. <Border
  46. Margin="2"
  47. HorizontalAlignment="Stretch"
  48. VerticalAlignment="Stretch"
  49. ClipToBounds="True"
  50. CornerRadius="5">
  51. <Grid Margin="0">
  52. <Grid.ColumnDefinitions>
  53. <ColumnDefinition/>
  54. <ColumnDefinition Width="Auto"/>
  55. </Grid.ColumnDefinitions>
  56. <TextBlock
  57. HorizontalAlignment="Stretch"
  58. Text="{Binding UserId}"
  59. TextAlignment="Left"
  60. TextWrapping="Wrap" />
  61. <Button Grid.Column="1"
  62. HorizontalAlignment="Right"
  63. Command="{Binding Recover}"
  64. CommandParameter="{Binding}"
  65. Content="{locale:Locale Recover}"/>
  66. </Grid>
  67. </Border>
  68. </DataTemplate>
  69. </ListBox.ItemTemplate>
  70. </ListBox>
  71. </Grid>
  72. </UserControl>