Better Entry URL go to button

Migrated code from code behind pages to view models
Auto select Recents if there are any recent items
WIP auto focus on password box when opening database
This commit is contained in:
2017-10-09 18:40:02 +02:00
committed by BONNEVILLE Geoffroy
parent f2794f8055
commit 98ecb0b8a1
15 changed files with 134 additions and 71 deletions

View File

@@ -1,12 +1,14 @@
using System;
using Windows.UI.Xaml.Controls;
using ModernKeePass.Common;
using ModernKeePass.Interfaces;
namespace ModernKeePass.ViewModels
{
public class MainMenuItemVm: IIsEnabled
public class MainMenuItemVm: NotifyPropertyChangedBase, IIsEnabled
{
private string _title;
private bool _isSelected;
public string Title
{
@@ -21,6 +23,12 @@ namespace ModernKeePass.ViewModels
public Symbol SymbolIcon { get; set; }
public bool IsEnabled => PageType != null;
public bool IsSelected
{
get { return _isSelected; }
set { SetProperty(ref _isSelected, value); }
}
public override string ToString()
{
return Title;

View File

@@ -1,6 +1,4 @@
using System.ComponentModel;
using Windows.UI.Xaml;
using ModernKeePass.Common;
using ModernKeePass.Common;
namespace ModernKeePass.ViewModels
{