Class CommandBase
Last update: 09.03.2026Namespace: 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
canExecute Func<object, bool>
Properties
Description
public string Description { get; set; }
Property Value
string
IsExecuting
protected bool IsExecuting { get; set; }
Property Value
bool
Methods
CanExecute(object)
public bool CanExecute(object parameter)
Parameters
parameter object
Returns
bool
OnCanExecuteChanged()
protected void OnCanExecuteChanged()
OnShouldExecute()
protected void OnShouldExecute()
CanExecuteChanged
public virtual event EventHandler CanExecuteChanged
Event Type
EventHandler
ShouldExecute
public event EventHandler ShouldExecute
Event Type
EventHandler