diff options
| author | sunshineinabox <aqemail@gmail.com> | 2024-02-08 10:34:48 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 19:34:48 +0100 |
| commit | 459efd0db7ac64a408860a1a94d9244753fb808e (patch) | |
| tree | 98bce972122a56dc680d1e3bef6d5df35d989c7a /src/Ryujinx.Ava/UI/Views/User | |
| parent | 8bb7a3fc977db964b33645166e733b4b29259cb9 (diff) | |
Replace Flex Panels in favor of Wrap Panels for Avalonia (#6267)
* Switch from using Flex panel to a Wrap panel for Grid view. This allows keyboard navigation.
* Stop using Flex panel in favor of Avalonia Wrap Panel.
Diffstat (limited to 'src/Ryujinx.Ava/UI/Views/User')
| -rw-r--r-- | src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml b/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml index 818a21d6..3a9de303 100644 --- a/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml +++ b/src/Ryujinx.Ava/UI/Views/User/UserSelectorView.axaml @@ -4,7 +4,6 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:locale="clr-namespace:Ryujinx.Ava.Common.Locale" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" - xmlns:flex="clr-namespace:Avalonia.Flexbox;assembly=Avalonia.Flexbox" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:helpers="clr-namespace:Ryujinx.Ava.UI.Helpers" xmlns:models="clr-namespace:Ryujinx.Ava.UI.Models" @@ -40,11 +39,10 @@ ItemsSource="{Binding Profiles}"> <ListBox.ItemsPanel> <ItemsPanelTemplate> - <flex:FlexPanel - HorizontalAlignment="Stretch" - VerticalAlignment="Stretch" - AlignContent="FlexStart" - JustifyContent="FlexStart" /> + <WrapPanel + HorizontalAlignment="Left" + VerticalAlignment="Center" + Orientation="Horizontal"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.Styles> @@ -161,4 +159,4 @@ Content="{locale:Locale UserProfilesClose}" /> </StackPanel> </Grid> -</UserControl>
\ No newline at end of file +</UserControl> |
