summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Keyboard.cs
diff options
context:
space:
mode:
authorShawn Castrianni <shawn@spcware.com>2016-06-08 12:36:37 -0500
committerJason Smith <jason.smith@xamarin.com>2016-06-08 10:36:37 -0700
commitc1cf72080abbbc06571e5a64ef8777c35f7014f0 (patch)
treeb586f9e19e9ae5b0d35450bf0e37d46b3bdb5a70 /Xamarin.Forms.Core/Keyboard.cs
parent4553b845e436acfdd9cd21df6ac543edc5297d4a (diff)
downloadxamarin-forms-c1cf72080abbbc06571e5a64ef8777c35f7014f0.tar.gz
xamarin-forms-c1cf72080abbbc06571e5a64ef8777c35f7014f0.tar.bz2
xamarin-forms-c1cf72080abbbc06571e5a64ef8777c35f7014f0.zip
Add Plain Keyboard from KeyboardFlags.None (#155)
* Add Plain Keyboard from KeyboardFlags.None * Include Keyboard.Plain in Gallery * Update docs
Diffstat (limited to 'Xamarin.Forms.Core/Keyboard.cs')
-rw-r--r--Xamarin.Forms.Core/Keyboard.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core/Keyboard.cs b/Xamarin.Forms.Core/Keyboard.cs
index 56d5ca8c..ac07a0b2 100644
--- a/Xamarin.Forms.Core/Keyboard.cs
+++ b/Xamarin.Forms.Core/Keyboard.cs
@@ -3,6 +3,8 @@ namespace Xamarin.Forms
[TypeConverter(typeof(KeyboardTypeConverter))]
public class Keyboard
{
+ static Keyboard s_plain;
+
static Keyboard s_def;
static Keyboard s_email;
@@ -21,8 +23,12 @@ namespace Xamarin.Forms
{
}
- public static Keyboard Chat
+ public static Keyboard Plain
{
+ get { return s_plain ?? (s_plain = new CustomKeyboard(KeyboardFlags.None)); }
+ }
+
+ public static Keyboard Chat {
get { return s_chat ?? (s_chat = new ChatKeyboard()); }
}