Support for PrimaryButtonCommand, SecondaryButtonCommand and CloseButtonCommand is only partial. Commands get normally executed when a button is pressed, but state of a button isn't anyhow bind to command's state. Even if CanExecute method for some command returns false, linked button is still clickable.
I am using ContentDialog control from Microsoft.WindowsAppSDK (1.0.0) and AsyncRelayCommand from CommunityToolkit.Mvvm (7.1.2)
Support for
PrimaryButtonCommand,SecondaryButtonCommandandCloseButtonCommandis only partial. Commands get normally executed when a button is pressed, but state of a button isn't anyhow bind to command's state. Even ifCanExecutemethod for some command returns false, linked button is still clickable.I am using
ContentDialogcontrol fromMicrosoft.WindowsAppSDK (1.0.0)andAsyncRelayCommandfromCommunityToolkit.Mvvm (7.1.2)