MahApps.Metro
MahApps.Metro copied to clipboard
ShowInputAsync miss a validateCallback
Describe the feature
need to add a validation callback to be able to check if the input value is compliant
Hi! You can try the Minimal MVVM framework for MahApps.Metro:
<minimal:DialogCoordinatorService x:Name="DialogCoordinatorService"/>
<minimal:MetroDialogService DialogCoordinator="{Binding Source={x:Reference DialogCoordinatorService}}"
MessageBoxButtonLocalizer="{StaticResource MessageBoxButtonLocalizer}"
DialogContentMargin="*" DialogContentWidth="9*"
ValidatesOnDataErrors="True" ValidatesOnNotifyDataErrors="True"/>
Validation can be achieved via the ValidatesOnDataErrors and/or ValidatesOnNotifyDataErrors properties of the MetroDialogService for custom dialogs.
Sample that demonstrates validation using ValidatesOnDataErrors.