mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Ddata binding finally works!!
This commit is contained in:
@@ -23,15 +23,15 @@ namespace ModernKeePass.Pages
|
||||
/// </summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -61,15 +61,14 @@ namespace ModernKeePass.Pages
|
||||
/// and <see cref="Common.NavigationHelper.SaveState"/>.
|
||||
/// 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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user