Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShowInputAsync miss a validateCallback #4526

Open
TheCamel opened this issue Oct 30, 2024 · 1 comment
Open

ShowInputAsync miss a validateCallback #4526

TheCamel opened this issue Oct 30, 2024 · 1 comment

Comments

@TheCamel
Copy link

Describe the feature

need to add a validation callback to be able to check if the input value is compliant

@IvanGit
Copy link

IvanGit commented Dec 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants