2017-09-27 18:01:21 +02:00
|
|
|
|
using System;
|
2017-09-28 17:51:30 +02:00
|
|
|
|
using Windows.UI.Xaml.Controls;
|
2017-09-27 18:01:21 +02:00
|
|
|
|
using ModernKeePass.Interfaces;
|
|
|
|
|
|
|
|
|
|
namespace ModernKeePass.Models
|
|
|
|
|
{
|
|
|
|
|
public class MainMenuItem: IIsEnabled
|
|
|
|
|
{
|
2017-09-28 17:51:30 +02:00
|
|
|
|
private string _title;
|
|
|
|
|
|
|
|
|
|
public string Title
|
|
|
|
|
{
|
|
|
|
|
get { return IsEnabled ? _title : _title + " - Coming soon"; }
|
|
|
|
|
set { _title = value; }
|
|
|
|
|
}
|
|
|
|
|
|
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-09-27 18:01:21 +02:00
|
|
|
|
public bool IsEnabled => PageType != null;
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Title;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|