private async Task <LoginDialogData> DisplayLoginDialog()
        {
            var dictionary = new ResourceDictionary
            {
                Source = new Uri(
                    "pack://application:,,,/MaterialDesignThemes.MahApps;component/Themes/MaterialDesignTheme.MahApps.Dialogs.xaml")
            };

            var result =
                await
                DialogCoordinator.ShowLoginAsync(
                    this,
                    "Login",
                    string.Empty,
                    new LoginDialogSettings
            {
                //InitialUsername = UserSettings.Default.Username,
                EnablePasswordPreview      = true,
                UsernameWatermark          = "username",
                PasswordWatermark          = "Password",
                RememberCheckBoxVisibility = Visibility.Hidden,

                AnimateHide = false,
                SuppressDefaultResources = false,
                CustomResourceDictionary = dictionary,
                AnimateShow = true,
            });

            return(result);
        }