mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
Added lots of commands
Simplified KeePass client
This commit is contained in:
@@ -47,7 +47,7 @@ namespace ModernKeePass.Views
|
||||
{
|
||||
NavigationHelper.OnNavigatedTo(e);
|
||||
|
||||
var args = e.Parameter as PasswordEventArgs;
|
||||
/*var args = e.Parameter as PasswordEventArgs;
|
||||
if (args != null)
|
||||
DataContext = args.RootGroup;
|
||||
else
|
||||
@@ -55,7 +55,9 @@ namespace ModernKeePass.Views
|
||||
var vm = e.Parameter as GroupVm;
|
||||
if (vm != null)
|
||||
DataContext = vm;
|
||||
}
|
||||
}*/
|
||||
var args = e.Parameter as Application.Group.Models.GroupVm;
|
||||
if (args != null) DataContext = new GroupVm(args);
|
||||
}
|
||||
|
||||
protected override void OnNavigatedFrom(NavigationEventArgs e)
|
||||
|
@@ -13,17 +13,17 @@ namespace ModernKeePass.Views.UserControls
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
public IEnumerable<IPwEntity> ItemsSource
|
||||
public IEnumerable<IVmEntity> ItemsSource
|
||||
{
|
||||
get { return (IEnumerable<IPwEntity>)GetValue(ItemsSourceProperty); }
|
||||
get { return (IEnumerable<IVmEntity>)GetValue(ItemsSourceProperty); }
|
||||
set { SetValue(ItemsSourceProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ItemsSourceProperty =
|
||||
DependencyProperty.Register(
|
||||
"ItemsSource",
|
||||
typeof(IEnumerable<IPwEntity>),
|
||||
typeof(IEnumerable<IVmEntity>),
|
||||
typeof(BreadCrumbUserControl),
|
||||
new PropertyMetadata(new Stack<IPwEntity>(), (o, args) => { }));
|
||||
new PropertyMetadata(new Stack<IVmEntity>(), (o, args) => { }));
|
||||
}
|
||||
}
|
||||
|
@@ -75,18 +75,18 @@ namespace ModernKeePass.Views.UserControls
|
||||
typeof(HamburgerMenuUserControl),
|
||||
new PropertyMetadata(Visibility.Collapsed, (o, args) => { }));
|
||||
|
||||
public IEnumerable<IPwEntity> ItemsSource
|
||||
public IEnumerable<IVmEntity> ItemsSource
|
||||
{
|
||||
get { return (IEnumerable<IPwEntity>)GetValue(ItemsSourceProperty); }
|
||||
get { return (IEnumerable<IVmEntity>)GetValue(ItemsSourceProperty); }
|
||||
set { SetValue(ItemsSourceProperty, value); }
|
||||
}
|
||||
|
||||
public static readonly DependencyProperty ItemsSourceProperty =
|
||||
DependencyProperty.Register(
|
||||
"ItemsSource",
|
||||
typeof(IEnumerable<IPwEntity>),
|
||||
typeof(IEnumerable<IVmEntity>),
|
||||
typeof(HamburgerMenuUserControl),
|
||||
new PropertyMetadata(new List<IPwEntity>(), (o, args) => { }));
|
||||
new PropertyMetadata(new List<IVmEntity>(), (o, args) => { }));
|
||||
|
||||
public object SelectedItem
|
||||
{
|
||||
|
Reference in New Issue
Block a user