RelayCommandAttribute.CanExecute Property
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.
Gets or sets the name of the property or method that will be invoked to check whether the generated command can be executed at any given time. The referenced member needs to return a Boolean value, and has to have a signature compatible with the target command.
public string? CanExecute { get; init; }
member this.CanExecute : string with get, set
Public Property CanExecute As String