Sdílet prostřednictvím


DelegateCommandBase.CanExecuteDependsOn Method

Definition

Adds a property upon which this command's CanExecute state depends. When the property changes, this command will raise CanExecuteChanged

public:
 void CanExecuteDependsOn(System::ComponentModel::INotifyPropertyChanged ^ source, System::String ^ propertyName);
public void CanExecuteDependsOn (System.ComponentModel.INotifyPropertyChanged source, string propertyName);
member this.CanExecuteDependsOn : System.ComponentModel.INotifyPropertyChanged * string -> unit
Public Sub CanExecuteDependsOn (source As INotifyPropertyChanged, propertyName As String)

Parameters

source
INotifyPropertyChanged

The object instance whose properties will be observed

propertyName
String

The property to be observed

Applies to