mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Wrong password sets the password box border to red Typing text removes the error Implemented real command bar at the bottom in Groups Search box is always present
25 lines
777 B
C#
25 lines
777 B
C#
using System;
|
|
using System.Runtime.InteropServices.WindowsRuntime;
|
|
using Windows.UI.Text;
|
|
using Windows.UI.Xaml.Data;
|
|
|
|
namespace ModernKeePass.Converters
|
|
{
|
|
public class TextToFontStyleConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, string language)
|
|
{
|
|
var compareValue = parameter as string;
|
|
var text = value as string;
|
|
return string.Compare(text, compareValue, StringComparison.OrdinalIgnoreCase) == 0
|
|
? FontStyle.Italic
|
|
: FontStyle.Normal;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|