diff --git a/.vs/ModernKeePass/v14/.suo b/.vs/ModernKeePass/v14/.suo
index b4751f7..799715a 100644
Binary files a/.vs/ModernKeePass/v14/.suo and b/.vs/ModernKeePass/v14/.suo differ
diff --git a/ModernKeePass/MainPage.xaml.cs b/ModernKeePass/MainPage.xaml.cs
index edf8e5f..06eb43f 100644
--- a/ModernKeePass/MainPage.xaml.cs
+++ b/ModernKeePass/MainPage.xaml.cs
@@ -34,8 +34,7 @@ namespace ModernKeePass
textBlock.Text = "Opened database: " + file.Name;
var database = new DatabaseVm();
database.Open(file, "test");
- Frame.Navigate(typeof(GroupDetailPage), database);
- //Frame.Navigate(typeof(GroupDetailPage), database.RootGroup);
+ Frame.Navigate(typeof(GroupDetailPage), database.RootGroup);
}
else
{
diff --git a/ModernKeePass/ModernKeePass.csproj b/ModernKeePass/ModernKeePass.csproj
index 7317ba3..22ec25f 100644
--- a/ModernKeePass/ModernKeePass.csproj
+++ b/ModernKeePass/ModernKeePass.csproj
@@ -114,9 +114,6 @@
MainPage.xaml
-
- BasicPage1.xaml
-
GroupDetailPage.xaml
@@ -124,7 +121,6 @@
-
@@ -148,18 +144,14 @@
MSBuild:Compile
Designer
-
- Designer
- MSBuild:Compile
-
Designer
MSBuild:Compile
-
- ..\packages\ModernKeePassLib.2.19.2930\lib\netstandard1.2\ModernKeePassLib.dll
+
+ ..\packages\ModernKeePassLib.2.19.2940\lib\netstandard1.2\ModernKeePassLib.dll
True
diff --git a/ModernKeePass/Pages/BasicPage1.xaml b/ModernKeePass/Pages/BasicPage1.xaml
deleted file mode 100644
index c716667..0000000
--- a/ModernKeePass/Pages/BasicPage1.xaml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
- My Application
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ModernKeePass/Pages/BasicPage1.xaml.cs b/ModernKeePass/Pages/BasicPage1.xaml.cs
deleted file mode 100644
index cc7b7a7..0000000
--- a/ModernKeePass/Pages/BasicPage1.xaml.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-using ModernKeePass.Common;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Runtime.InteropServices.WindowsRuntime;
-using Windows.Foundation;
-using Windows.Foundation.Collections;
-using Windows.UI.Xaml;
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Controls.Primitives;
-using Windows.UI.Xaml.Data;
-using Windows.UI.Xaml.Input;
-using Windows.UI.Xaml.Media;
-using Windows.UI.Xaml.Navigation;
-
-// The Basic Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234237
-
-namespace ModernKeePass.Pages
-{
- ///
- /// A basic page that provides characteristics common to most applications.
- ///
- public sealed partial class BasicPage1 : Page
- {
-
- private NavigationHelper navigationHelper;
- private ObservableDictionary defaultViewModel = new ObservableDictionary();
-
- ///
- /// This can be changed to a strongly typed view model.
- ///
- public ObservableDictionary DefaultViewModel
- {
- get { return this.defaultViewModel; }
- }
-
- ///
- /// NavigationHelper is used on each page to aid in navigation and
- /// process lifetime management
- ///
- public NavigationHelper NavigationHelper
- {
- get { return this.navigationHelper; }
- }
-
-
- public BasicPage1()
- {
- this.InitializeComponent();
- this.navigationHelper = new NavigationHelper(this);
- this.navigationHelper.LoadState += navigationHelper_LoadState;
- this.navigationHelper.SaveState += navigationHelper_SaveState;
- }
-
- ///
- /// Populates the page with content passed during navigation. Any saved state is also
- /// provided when recreating a page from a prior session.
- ///
- ///
- /// The source of the event; typically
- ///
- /// Event data that provides both the navigation parameter passed to
- /// when this page was initially requested and
- /// a dictionary of state preserved by this page during an earlier
- /// session. The state will be null the first time a page is visited.
- private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
- {
- }
-
- ///
- /// Preserves state associated with this page in case the application is suspended or the
- /// page is discarded from the navigation cache. Values must conform to the serialization
- /// requirements of .
- ///
- /// The source of the event; typically
- /// Event data that provides an empty dictionary to be populated with
- /// serializable state.
- private void navigationHelper_SaveState(object sender, SaveStateEventArgs e)
- {
- }
-
- #region NavigationHelper registration
-
- /// The methods provided in this section are simply used to allow
- /// NavigationHelper to respond to the page's navigation methods.
- ///
- /// Page specific logic should be placed in event handlers for the
- ///
- /// and .
- /// The navigation parameter is available in the LoadState method
- /// in addition to page state preserved during an earlier session.
-
- protected override void OnNavigatedTo(NavigationEventArgs e)
- {
- navigationHelper.OnNavigatedTo(e);
- }
-
- protected override void OnNavigatedFrom(NavigationEventArgs e)
- {
- navigationHelper.OnNavigatedFrom(e);
- }
-
- #endregion
- }
-}
diff --git a/ModernKeePass/Pages/GroupDetailPage.xaml b/ModernKeePass/Pages/GroupDetailPage.xaml
index 3f4ed2d..23a1618 100644
--- a/ModernKeePass/Pages/GroupDetailPage.xaml
+++ b/ModernKeePass/Pages/GroupDetailPage.xaml
@@ -27,7 +27,7 @@
+ Source="{Binding Groups}"/>
-
+
diff --git a/ModernKeePass/Pages/GroupDetailPage.xaml.cs b/ModernKeePass/Pages/GroupDetailPage.xaml.cs
index 2d76eea..353c6fa 100644
--- a/ModernKeePass/Pages/GroupDetailPage.xaml.cs
+++ b/ModernKeePass/Pages/GroupDetailPage.xaml.cs
@@ -23,15 +23,15 @@ namespace ModernKeePass.Pages
///
public NavigationHelper NavigationHelper
{
- get { return this.navigationHelper; }
+ get { return navigationHelper; }
}
public GroupDetailPage()
{
- this.InitializeComponent();
- this.navigationHelper = new NavigationHelper(this);
- this.navigationHelper.LoadState += navigationHelper_LoadState;
+ InitializeComponent();
+ navigationHelper = new NavigationHelper(this);
+ navigationHelper.LoadState += navigationHelper_LoadState;
}
///
@@ -61,15 +61,14 @@ namespace ModernKeePass.Pages
/// and .
/// The navigation parameter is available in the LoadState method
/// in addition to page state preserved during an earlier session.
-
+ ///
protected override void OnNavigatedTo(NavigationEventArgs e)
{
navigationHelper.OnNavigatedTo(e);
if (e.Parameter is GroupVm)
{
- ViewModel = e.Parameter as GroupVm;
- ViewModel?.NotifyPropertyChanged("Name");
+ DataContext = e.Parameter as GroupVm;
}
}
diff --git a/ModernKeePass/ViewModels/Test.cs b/ModernKeePass/ViewModels/Test.cs
deleted file mode 100644
index 4e0b10c..0000000
--- a/ModernKeePass/ViewModels/Test.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-
-namespace ModernKeePass.ViewModels
-{
- public class Test
- {
- public string Title { get; set; }
- }
-}
diff --git a/ModernKeePass/packages.config b/ModernKeePass/packages.config
index 44cb1a8..f3da6b3 100644
--- a/ModernKeePass/packages.config
+++ b/ModernKeePass/packages.config
@@ -2,7 +2,7 @@
-
+
diff --git a/packages/ModernKeePassLib.2.19.2930/lib/netstandard1.2/ModernKeePassLib.dll b/packages/ModernKeePassLib.2.19.2940/lib/netstandard1.2/ModernKeePassLib.dll
similarity index 99%
rename from packages/ModernKeePassLib.2.19.2930/lib/netstandard1.2/ModernKeePassLib.dll
rename to packages/ModernKeePassLib.2.19.2940/lib/netstandard1.2/ModernKeePassLib.dll
index af91483..e40b5f6 100644
Binary files a/packages/ModernKeePassLib.2.19.2930/lib/netstandard1.2/ModernKeePassLib.dll and b/packages/ModernKeePassLib.2.19.2940/lib/netstandard1.2/ModernKeePassLib.dll differ