Files
modernkeepass/WinAppCommon/ViewModels/UserControls/BreadcrumbVm.cs
Geoffroy BONNEVILLE b8e1bbd9d7 Move finally works
Sort entries and groups refresh page info
Stopped using breadcrumb user control - for now
Some refactoring
2020-04-28 18:54:37 +02:00

19 lines
580 B
C#

using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Views;
using ModernKeePass.Common;
using ModernKeePass.Models;
namespace ModernKeePass.ViewModels
{
public class BreadcrumbVm
{
public RelayCommand<string> NavigateCommand { get; }
public BreadcrumbVm(INavigationService navigation)
{
NavigateCommand = new RelayCommand<string>(groupId =>
navigation.NavigateTo(Constants.Navigation.GroupPage, new NavigationItem {Id = groupId}),
groupId => !string.IsNullOrEmpty(groupId));
}
}
}