2017-09-27 18:01:21 +02:00
|
|
|
|
using System;
|
2017-09-28 17:51:30 +02:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
2017-10-09 18:40:02 +02:00
|
|
|
|
using ModernKeePass.Common;
|
2017-09-27 18:01:21 +02:00
|
|
|
|
using ModernKeePass.Interfaces;
|
|
|
|
|
|
2017-10-02 10:44:04 +02:00
|
|
|
|
namespace ModernKeePass.ViewModels
|
2017-09-27 18:01:21 +02:00
|
|
|
|
{
|
2017-10-09 18:40:02 +02:00
|
|
|
|
public class MainMenuItemVm: NotifyPropertyChangedBase, IIsEnabled
|
2017-09-27 18:01:21 +02:00
|
|
|
|
{
|
2017-10-09 18:40:02 +02:00
|
|
|
|
private bool _isSelected;
|
2017-09-28 17:51:30 +02:00
|
|
|
|
|
2017-10-13 11:48:58 +02:00
|
|
|
|
public string Title { get; set; }
|
2017-09-28 17:51:30 +02:00
|
|
|
|
|
2017-09-27 18:01:21 +02:00
|
|
|
|
public Type PageType { get; set; }
|
2017-09-28 17:51:30 +02:00
|
|
|
|
public object Parameter { get; set; }
|
|
|
|
|
public Frame Destination { get; set; }
|
|
|
|
|
public int Group { get; set; } = 0;
|
2017-09-29 18:08:20 +02:00
|
|
|
|
public Symbol SymbolIcon { get; set; }
|
2017-10-13 11:48:58 +02:00
|
|
|
|
public bool IsEnabled { get; set; } = true;
|
2017-09-27 18:01:21 +02:00
|
|
|
|
|
2017-10-09 18:40:02 +02:00
|
|
|
|
public bool IsSelected
|
|
|
|
|
{
|
|
|
|
|
get { return _isSelected; }
|
|
|
|
|
set { SetProperty(ref _isSelected, value); }
|
|
|
|
|
}
|
|
|
|
|
|
2017-09-27 18:01:21 +02:00
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Title;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|