summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Keyboard.cs
diff options
context:
space:
mode:
authorJason Smith <jason.smith@xamarin.com>2016-03-22 13:02:25 -0700
committerJason Smith <jason.smith@xamarin.com>2016-03-22 16:13:41 -0700
commit17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch)
treeb5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Core/Keyboard.cs
downloadxamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz
xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2
xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip
Initial import
Diffstat (limited to 'Xamarin.Forms.Core/Keyboard.cs')
-rw-r--r--Xamarin.Forms.Core/Keyboard.cs64
1 files changed, 64 insertions, 0 deletions
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