summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WP8/Converters/KeyboardConverter.cs
blob: cd082b29e10dd73273894a8e2269a1e3f8b2c068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
		}
	}
}