Open sandboxFocus

Class BaseDelegateCommand

Base class for all delegate-based implementations of ICommand in this package. Provides common functionality for command execution and INotifyPropertyChanged integration.

Inheritance
BaseDelegateCommand
Implements
Namespace: Metalama.Patterns.Wpf
Assembly: Metalama.Patterns.Wpf.dll
Syntax
public abstract class BaseDelegateCommand : ICommand
Remarks

This class handles the CanExecuteChanged event and integrates with INotifyPropertyChanged to automatically raise CanExecuteChanged when a bound CanExecute property changes.

Notifications are dispatched through the SynchronizationContext captured at construction time to ensure thread-safe UI updates.

Events

Name Description
CanExecuteChanged

Occurs when the return value of CanExecute(object) may have changed.

Extension Methods

See Also