diff options
Diffstat (limited to 'Xamarin.Forms.Platform.WP8/Converters/KeyboardConverter.cs')
-rw-r--r-- | Xamarin.Forms.Platform.WP8/Converters/KeyboardConverter.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.WP8/Converters/KeyboardConverter.cs b/Xamarin.Forms.Platform.WP8/Converters/KeyboardConverter.cs new file mode 100644 index 00000000..cd082b29 --- /dev/null +++ b/Xamarin.Forms.Platform.WP8/Converters/KeyboardConverter.cs @@ -0,0 +1,19 @@ +using System; +using System.Globalization; + +namespace Xamarin.Forms.Platform.WinPhone +{ + public class KeyboardConverter : System.Windows.Data.IValueConverter + { + public object Convert(object value, Type targetType, object parameter, CultureInfo culture) + { + var keyboard = (Keyboard)value; + return keyboard.ToInputScope(); + } + + public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) + { + throw new NotSupportedException(); + } + } +}
\ No newline at end of file |