uno icon indicating copy to clipboard operation
uno copied to clipboard

[Android] `NavigationView` SelectedItem doesn't update

Open morning4coffe-dev opened this issue 5 months ago • 0 comments

Current behavior

https://github.com/user-attachments/assets/b1a55415-77b1-4e5e-bc12-fcd1b83e5bca

Expected behavior

https://github.com/user-attachments/assets/c0fd6b4d-2091-4ce9-b354-53928590471a

How to reproduce it (as minimally and precisely as possible)

  <NavigationView x:Name="NavigationView"
                  PaneDisplayMode="LeftCompact"
                  SelectedItem="{x:Bind SelectedItem, Mode=TwoWay}">
    <NavigationView.MenuItems>
      <NavigationViewItem Content="Home" Icon="Home" Tag="Home" />
      <NavigationViewItem Content="Sub Menu 1" Icon="Keyboard" ToolTipService.ToolTip="Sub Menu 1">
        <NavigationViewItem.MenuItems>
          <NavigationViewItem Content="Notes" Icon="Page" ToolTipService.ToolTip="Notes"/>
          <NavigationViewItem Content="Mail" Icon="Mail" ToolTipService.ToolTip="Mail"/>
          <NavigationViewItem Content="Sub Menu 2" Icon="AllApps" ToolTipService.ToolTip="Sub Menu 2">
            <NavigationViewItem.MenuItems>
              <NavigationViewItem Content="Calendar" Icon="Calendar" ToolTipService.ToolTip="Calendar"/>
              <NavigationViewItem Content="Contacts" Icon="Contact" ToolTipService.ToolTip="Contacts"/>
            </NavigationViewItem.MenuItems>
          </NavigationViewItem>
        </NavigationViewItem.MenuItems>
      </NavigationViewItem>
    </NavigationView.MenuItems>
    <Frame x:Name="ContentFrame" />
  </NavigationView>
    private NavigationViewItem _selectedItem;
    public NavigationViewItem SelectedItem { get => _selectedItem; set => _selectedItem = value; }

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

Android

IDE

Visual Studio 2022

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

morning4coffe-dev avatar Aug 27 '24 10:08 morning4coffe-dev