diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT/KeyboardConverter.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/KeyboardConverter.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/KeyboardConverter.cs b/Xamarin.Forms.Platform.WinRT/KeyboardConverter.cs new file mode 100644 index 00000000..0cbd6a55 --- /dev/null +++ b/Xamarin.Forms.Platform.WinRT/KeyboardConverter.cs @@ -0,0 +1,27 @@ +using System; + +#if WINDOWS_UWP + +namespace Xamarin.Forms.Platform.UWP +#else + +namespace Xamarin.Forms.Platform.WinRT +#endif +{ + 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(); + } + } +}
\ No newline at end of file |