Files
modernkeepass/ModernKeePass/Models/MainMenuItem.cs
Geoffroy Bonneville b5c04d524d Added icons to main menu
Added icons to entries and groups with a mapping
Created a Converter to handle pluralization
Several UI enhancements
2017-11-08 14:42:36 +01:00

30 lines
730 B
C#

using System;
using Windows.UI.Xaml.Controls;
using ModernKeePass.Interfaces;
namespace ModernKeePass.Models
{
public class MainMenuItem: IIsEnabled
{
private string _title;
public string Title
{
get { return IsEnabled ? _title : _title + " - Coming soon"; }
set { _title = value; }
}
public Type PageType { get; set; }
public object Parameter { get; set; }
public Frame Destination { get; set; }
public int Group { get; set; } = 0;
public Symbol SymbolIcon { get; set; }
public bool IsEnabled => PageType != null;
public override string ToString()
{
return Title;
}
}
}