File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1384,9 +1384,10 @@ internal bool ShowRowContext(TableViewRow row, Point position)
1384
1384
1385
1385
if ( RowContextFlyout is not null && ! eventArgs . Handled )
1386
1386
{
1387
- var presenter = row . FindDescendant < ListViewItemPresenter > ( ) ;
1388
-
1389
- RowContextFlyout . ShowAt ( row , new FlyoutShowOptions
1387
+ #if ! WINDOWS
1388
+ RowContextFlyout . DataContext = row . Content ;
1389
+ #endif
1390
+ RowContextFlyout . ShowAt ( row . CellPresenter , new FlyoutShowOptions
1390
1391
{
1391
1392
#if WINDOWS
1392
1393
ShowMode = FlyoutShowMode . Standard ,
@@ -1411,6 +1412,9 @@ internal bool ShowCellContext(TableViewCell cell, Point position)
1411
1412
1412
1413
if ( CellContextFlyout is not null && ! eventArgs . Handled )
1413
1414
{
1415
+ #if ! WINDOWS
1416
+ CellContextFlyout . DataContext = cell . Row ? . Content ;
1417
+ #endif
1414
1418
CellContextFlyout . ShowAt ( cell , new FlyoutShowOptions
1415
1419
{
1416
1420
#if WINDOWS
You can’t perform that action at this time.
0 commit comments