WIP Breadcrumb

This commit is contained in:
BONNEVILLE Geoffroy
2018-06-12 18:40:54 +02:00
parent 25945b8b3b
commit 0a4df01354
9 changed files with 139 additions and 14 deletions

View File

@@ -93,22 +93,23 @@ namespace ModernKeePass.ViewModels
set { SetProperty(ref _isMenuClosed, value); }
}
public ObservableCollection<GroupVm> BreadCrumb
public Stack<GroupVm> BreadCrumb
{
get
{
var groups = new ObservableCollection<GroupVm>();
var groups = new Stack<GroupVm>();
var group = this;
while (group.ParentGroup != null)
{
group = group.ParentGroup;
groups.Insert(0, group);
groups.Push(group);
}
return groups;
}
}
[Obsolete]
public string Path
{
get