notify application when a command is enabled or disabled
This commit is contained in:
parent
489544e372
commit
32a9da8a02
@ -79,7 +79,8 @@ namespace MBS.Framework
|
||||
/// that reference it.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if visible; otherwise, <c>false</c>.</value>
|
||||
public bool Enabled { get; set; } = true;
|
||||
private bool _Enabled = true;
|
||||
public bool Enabled { get { return _Enabled; } set { _Enabled = value; Application.Instance._EnableDisableCommand(this, value); } }
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether this <see cref="Command" /> is visible in all <see cref="CommandBar" />s and <see cref="MenuBar" />s
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user