From 17fdde66d94155fc62a034fa6658995bef6fd6e5 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Tue, 22 Mar 2016 13:02:25 -0700 Subject: Initial import --- Xamarin.Forms.Core/Keyboard.cs | 64 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Xamarin.Forms.Core/Keyboard.cs (limited to 'Xamarin.Forms.Core/Keyboard.cs') diff --git a/Xamarin.Forms.Core/Keyboard.cs b/Xamarin.Forms.Core/Keyboard.cs new file mode 100644 index 00000000..56d5ca8c --- /dev/null +++ b/Xamarin.Forms.Core/Keyboard.cs @@ -0,0 +1,64 @@ +namespace Xamarin.Forms +{ + [TypeConverter(typeof(KeyboardTypeConverter))] + public class Keyboard + { + static Keyboard s_def; + + static Keyboard s_email; + + static Keyboard s_text; + + static Keyboard s_url; + + static Keyboard s_numeric; + + static Keyboard s_telephone; + + static Keyboard s_chat; + + internal Keyboard() + { + } + + public static Keyboard Chat + { + get { return s_chat ?? (s_chat = new ChatKeyboard()); } + } + + public static Keyboard Default + { + get { return s_def ?? (s_def = new Keyboard()); } + } + + public static Keyboard Email + { + get { return s_email ?? (s_email = new EmailKeyboard()); } + } + + public static Keyboard Numeric + { + get { return s_numeric ?? (s_numeric = new NumericKeyboard()); } + } + + public static Keyboard Telephone + { + get { return s_telephone ?? (s_telephone = new TelephoneKeyboard()); } + } + + public static Keyboard Text + { + get { return s_text ?? (s_text = new TextKeyboard()); } + } + + public static Keyboard Url + { + get { return s_url ?? (s_url = new UrlKeyboard()); } + } + + public static Keyboard Create(KeyboardFlags flags) + { + return new CustomKeyboard(flags); + } + } +} \ No newline at end of file -- cgit v1.2.3