DelegateCommandBase.CanExecuteDependsOn Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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