зеркало из https://github.com/DeGsoft/maui-linux.git
21 строка
491 B
C#
21 строка
491 B
C#
using System;
|
|
|
|
namespace Xamarin.Forms.Platform.UWP
|
|
{
|
|
public class KeyboardConverter : Windows.UI.Xaml.Data.IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, string language)
|
|
{
|
|
var keyboard = value as Keyboard;
|
|
if (keyboard == null)
|
|
return null;
|
|
|
|
return keyboard.ToInputScope();
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, string language)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
} |