Adds some VM tests

New tooltip in Textbox with button control
New welcome page in Settings (shown when noting is selected)
Settings are now grouped
This commit is contained in:
BONNEVILLE Geoffroy
2017-11-27 15:26:36 +01:00
parent 42ac04b02c
commit fcbda1e33d
23 changed files with 214 additions and 67 deletions

View File

@@ -69,17 +69,17 @@ namespace ModernKeePass.Pages.BasePages
{
// When this is a new page, select the first item automatically unless logical page
// navigation is being used (see the logical page navigation #region below.)
if (!UsingLogicalPageNavigation() && ListViewSource.View != null)
if (!UsingLogicalPageNavigation())
{
ListViewSource.View.MoveCurrentToFirst();
ListViewSource.View?.MoveCurrentToFirst();
}
}
else
{
// Restore the previously saved state associated with this page
if (e.PageState.ContainsKey("SelectedItem") && ListViewSource.View != null)
if (e.PageState.ContainsKey("SelectedItem"))
{
ListViewSource.View.MoveCurrentTo(e.PageState["SelectedItem"]);
ListViewSource.View?.MoveCurrentTo(e.PageState["SelectedItem"]);
}
}
}