mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-31 09:04:59 +00:00
ux: new attached property MenuItemExtension.Command
for MenuItem
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
6a1026c992
commit
dd254ebf4f
10 changed files with 42 additions and 15 deletions
12
src/Views/MenuItemExtension.cs
Normal file
12
src/Views/MenuItemExtension.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Data;
|
||||
|
||||
namespace SourceGit.Views
|
||||
{
|
||||
public class MenuItemExtension : AvaloniaObject
|
||||
{
|
||||
public static readonly AttachedProperty<string> CommandProperty =
|
||||
AvaloniaProperty.RegisterAttached<MenuItemExtension, MenuItem, string>("Command", string.Empty, false, BindingMode.OneWay);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue