Skip to content

Right click fails to change the selection. #293

@ProphetLamb

Description

@ProphetLamb

Description:

Right click on a row doesn't select the row for the RowContextFlyout.
This is frustrating to my users, because they keep sending Mails to the wrong recipients.

Steps to Reproduce:

  1. TablieView with RowContextFlyoutand SelectionUnit="Row" and SelectionMode="Extended" or "Single".
<tv:TableView
  SelectionUnit="Row">
  <i:Interaction.Behaviors>
    <behaviors:TableViewHelper />
  </i:Interaction.Behaviors>
  <tv:TableView.RowContextFlyout>
    <MenuFlyout>
      <MenuFlyoutItem
        x:Uid="CopyEmail"
        Click="CopyEmail_Click">
        <MenuFlyoutItem.Icon>
          <SymbolIcon Symbol="Copy" />
        </MenuFlyoutItem.Icon>
      </MenuFlyoutItem>
    </MenuFlyout>
  </tv:TableView.RowContextFlyout>
</tv:TableView>
  1. Right click the Row
+ Expected selection is changed to the clicked row.
- Actual selection remains empty, or on the previously selected row.

Expected behavior:

Expected selection is changed to the right clicked row.

Screenshots:

Before right click:

Image

After right click:

Image

Environment:

  • Package Version: <PackageVersion Include="WinUI.TableView" Version="1.4.0-preview1" />
  • WinAppSDK Version: net9.0-windows10.0.26100

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions