OkCancelDialogAwareViewModel.CanOk method¶
Decides whether the OK button is enabled. Override it to require valid input before the dialog can be confirmed.
Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices
Declaration¶
Parameters¶
| name | type | description |
|---|---|---|
| parameter | object |
The command parameter supplied by the button. Unused by the base implementation. |
Returns¶
| type | description |
|---|---|
bool |
true when OK may be pressed. The base implementation always returns true. |