Edit

Share via


NotifyCanExecuteChangedForAttribute Constructors

Definition

Overloads

NotifyCanExecuteChangedForAttribute(String)

Source:
NotifyCanExecuteChangedForAttribute.cs

Initializes a new instance of the NotifyCanExecuteChangedForAttribute class.

public NotifyCanExecuteChangedForAttribute(string commandName);
new CommunityToolkit.Mvvm.ComponentModel.NotifyCanExecuteChangedForAttribute : string -> CommunityToolkit.Mvvm.ComponentModel.NotifyCanExecuteChangedForAttribute
Public Sub New (commandName As String)

Parameters

commandName
String

The name of the command to also notify when the annotated property changes.

Applies to

NotifyCanExecuteChangedForAttribute(String, String[])

Source:
NotifyCanExecuteChangedForAttribute.cs

Initializes a new instance of the NotifyCanExecuteChangedForAttribute class.

public NotifyCanExecuteChangedForAttribute(string commandName, params string[] otherCommandNames);
new CommunityToolkit.Mvvm.ComponentModel.NotifyCanExecuteChangedForAttribute : string * string[] -> CommunityToolkit.Mvvm.ComponentModel.NotifyCanExecuteChangedForAttribute
Public Sub New (commandName As String, ParamArray otherCommandNames As String())

Parameters

commandName
String

The name of the property to also notify when the annotated property changes.

otherCommandNames
String[]

The other command names to also notify when the annotated property changes. This parameter can optionally be used to indicate a series of dependent commands from the same attribute, to keep the code more compact.

Applies to