24 lines
649 B
C#
24 lines
649 B
C#
using FluentTerminal.Models.Enums;
|
|
using System;
|
|
using Windows.UI.Xaml.Data;
|
|
|
|
namespace FluentTerminal.App.Converters
|
|
{
|
|
public class IntToExtendedVirtualKeyConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, string language)
|
|
{
|
|
if (value is int intValue)
|
|
{
|
|
return ((ExtendedVirtualKey)intValue).ToString();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|