unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.03k stars 733 forks source link

[Skia] MenuFlyoutItem from a context menu of DataGrid does not receive the right DataContext #18835

Open ArchieCoder opened 3 days ago

ArchieCoder commented 3 days ago

Current behavior

Right-click to show the context menu and select "Copy Mountain" then copy it in Notepad. Do it for different items. What will be copied is not what is selected

Expected behavior

The expected DataContext should be set.

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

Open the solution and test (it uses the latest Uno SDK): UnoAppDataGridContextMenu.zip

NOTE I tried with the old DataGrid sample from Uno sample directory and it works. Here is the sample with the added code to have the context menu UnoWCTDataGridSample.zip

Workaround

No response

Works on UWP/WinUI

Yes

Environment

No response

NuGet package version(s)

5.5.43

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response