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

Add InitialShouldRemember Property to LoginDialogSettings #3504

Closed
shaggygi opened this issue May 23, 2019 · 0 comments · Fixed by #3519
Closed

Add InitialShouldRemember Property to LoginDialogSettings #3504

shaggygi opened this issue May 23, 2019 · 0 comments · Fixed by #3519
Milestone

Comments

@shaggygi
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Add new bool property for LoginDialogSettings to initially check the RememberCheckBox. There are times when a user logins and wants to remember, so they check the box. When they are prompted for user/pass the next time, it would be nice to allow them to not have to check the box to remember each time. We need a new property to pass when calling ShowLoginAsync method.

Describe the solution you'd like
Be able to set the property when instantiating the LoginDialogSettings object like below:

var settings = new MahApps.Metro.Controls.Dialogs.LoginDialogSettings()
{
    InitialShouldRemember = true,  // New property here.
    RememberCheckBoxVisibility = Visibility.Visible
};

 LoginDialogData loginDialogData = 
                await (System.Windows.Application.Current.MainWindow as MetroWindow).ShowLoginAsync(
                    "Caption",
                    "Message",
                    settings);
@punker76 punker76 added this to the 2.0.0 milestone Jun 4, 2019
punker76 added a commit to Evangelink/MahApps.Metro that referenced this issue Jun 4, 2019
punker76 added a commit to Evangelink/MahApps.Metro that referenced this issue Jun 4, 2019
Rename InitialRememberCheckBoxChecked to RememberCheckBoxChecked which keep it in line with the rest of the properties.
punker76 added a commit that referenced this issue Jun 4, 2019
(GH-3504) Add initial remember checkbox checked
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

2 participants