-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from w-ahmad/feature/ContextFlyouts
added cell and row context flyouts
- Loading branch information
Showing
7 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/WinUI.TableView/TableViewCellContextFlyoutEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using System.ComponentModel; | ||
|
||
namespace WinUI.TableView; | ||
|
||
public partial class TableViewCellContextFlyoutEventArgs : HandledEventArgs | ||
{ | ||
public TableViewCellContextFlyoutEventArgs(TableViewCellSlot slot, TableViewCell cell, object item, FlyoutBase flyout) | ||
{ | ||
Slot = slot; | ||
Cell = cell; | ||
Item = item; | ||
Flyout = flyout; | ||
} | ||
|
||
public TableViewCellSlot Slot { get; } | ||
public TableViewCell Cell { get; } | ||
public object Item { get; } | ||
public FlyoutBase Flyout { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
namespace WinUI.TableView; | ||
internal readonly record struct TableViewCellSlot(int Row, int Column); | ||
public readonly record struct TableViewCellSlot(int Row, int Column); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using Microsoft.UI.Xaml.Controls.Primitives; | ||
using System.ComponentModel; | ||
|
||
namespace WinUI.TableView; | ||
|
||
public partial class TableViewRowContextFlyoutEventArgs : HandledEventArgs | ||
{ | ||
public TableViewRowContextFlyoutEventArgs(int index, TableViewRow row, object item, FlyoutBase flyout) | ||
{ | ||
Index = index; | ||
Row = row; | ||
Item = item; | ||
Flyout = flyout; | ||
} | ||
|
||
public int Index { get; } | ||
public TableViewRow Row { get; } | ||
public object Item { get; } | ||
public FlyoutBase Flyout { get; } | ||
} |