Class CommandBase
Last update: 03.07.2024
Class CommandBase
Namespace: VM
Assembly: VM.dll
public abstract class CommandBase : ObservableObject, IObservableObject, IDisposableObject
Inheritance
object ← ObservableObject ← CommandBase
Implements
IObservableObject, IDisposableObject
Inherited Members
ObservableObject.Dispose(), ObservableObject.RaisePropertyChanged(string), ObservableObject.RaisePropertyChanged(string, object, object), ObservableObject.Dispose(bool), ObservableObject.DisposeManagedResources(), ObservableObject.DisposeUnmanagedResources(), ObservableObject.IsDisposed, ObservableObject.TryDisposing, ObservableObject.Disposed, ObservableObject.Disposing, ObservableObject.PropertyChanged
Constructors
CommandBase(Func<object, bool>)
public CommandBase(Func<object, bool> canExecute)
Parameters
Properties
Description
public string Description { get; set; }
Property Value
IsExecuting
protected bool IsExecuting { get; set; }
Property Value
Methods
CanExecute(object)
public bool CanExecute(object parameter)
Parameters
parameter
object
Returns
OnCanExecuteChanged()
protected void OnCanExecuteChanged()
OnShouldExecute()
protected void OnShouldExecute()
CanExecuteChanged
public virtual event EventHandler CanExecuteChanged
Event Type
ShouldExecute
public event EventHandler ShouldExecute