Class CommandContext
public class CommandContext : INotifyCollectionChanged
- Inheritance
-
CommandContext
- Implements
- Inherited Members
Properties
CanCreate
public bool CanCreate { get; }
Property Value
CanDelete
public bool CanDelete { get; }
Property Value
IsRoot
public bool IsRoot { get; }
Property Value
ProgressHost
public IProgressHost ProgressHost { get; set; }
Property Value
ValidationContext
public ValidationContext? ValidationContext { get; }
Property Value
Methods
Embedded(string, IProperty?, bool, bool)
public static CommandContext Embedded(string name, IProperty? container, bool canCreate, bool canDelete)
Parameters
Returns
GetCommands()
public Result<IReadOnlyList<Command>, Exception> GetCommands()
Returns
GetModal(string)
public (ModalRegistration Modal, string Route)? GetModal(string key)
Parameters
keystring
Returns
RaiseCanExecuteChanged()
public void RaiseCanExecuteChanged()
Restrict(bool?, bool?, bool?)
public CommandContext Restrict(bool? isRoot = null, bool? canCreate = null, bool? canDelete = null)
Parameters
Returns
Root(string, bool, bool)
public static CommandContext Root(string name, bool canCreate, bool canDelete)
Parameters
Returns
SetModal(string, ModalRegistration, string)
public void SetModal(string key, ModalRegistration modal, string route)
Parameters
keystringmodalModalRegistrationroutestring
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
CanExecuteChanged
public event Action? CanExecuteChanged
Event Type
CollectionChanged
Occurs when the collection changes.
public event NotifyCollectionChangedEventHandler? CollectionChanged