NotifyCanExecuteChangedForAttribute Constructors
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.
Overloads
| NotifyCanExecuteChangedForAttribute(String) |
Initializes a new instance of the NotifyCanExecuteChangedForAttribute class. |
| NotifyCanExecuteChangedForAttribute(String, String[]) |
Initializes a new instance of the NotifyCanExecuteChangedForAttribute class. |
NotifyCanExecuteChangedForAttribute(String)
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[])
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.