Main page now uses Frame to change views when selecting items

Backgrounds unified
Menu items can be disabled thanks to custom ListView control
This commit is contained in:
2017-09-27 18:01:21 +02:00
committed by BONNEVILLE Geoffroy
parent 3a045dbb16
commit caaf34918e
19 changed files with 319 additions and 138 deletions

View File

@@ -0,0 +1,17 @@
using System;
using ModernKeePass.Interfaces;
namespace ModernKeePass.Models
{
public class MainMenuItem: IIsEnabled
{
public string Title { get; set; }
public Type PageType { get; set; }
public bool IsEnabled => PageType != null;
public override string ToString()
{
return Title;
}
}
}