blob: ac07a0b2e8bf98be9a7e4a5a246d89f2856a29bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
namespace Xamarin.Forms
{
[TypeConverter(typeof(KeyboardTypeConverter))]
public class Keyboard
{
static Keyboard s_plain;
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 Plain
{
get { return s_plain ?? (s_plain = new CustomKeyboard(KeyboardFlags.None)); }
}
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);
}
}
}
|