mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-04 08:00:16 -04:00
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:
17
ModernKeePass/Models/MainMenuItem.cs
Normal file
17
ModernKeePass/Models/MainMenuItem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user