diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/Entry.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Native/Entry.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/Entry.cs b/Xamarin.Forms.Platform.Tizen/Native/Entry.cs index 8276aaa2..9b84cb3d 100644 --- a/Xamarin.Forms.Platform.Tizen/Native/Entry.cs +++ b/Xamarin.Forms.Platform.Tizen/Native/Entry.cs @@ -12,6 +12,9 @@ namespace Xamarin.Forms.Platform.Tizen.Native /// </summary> public class Entry : EEntry, IMeasurable, IBatchable { + static readonly int s_VariationNormal = 0; + static readonly int s_VariationSignedAndDecimal = 3; + /// <summary> /// Holds the formatted text of the entry. /// </summary> @@ -401,10 +404,18 @@ namespace Xamarin.Forms.Platform.Tizen.Native { SetInputPanelEnabled(false); } + else if (Keyboard == Keyboard.Numeric) + { + SetInputPanelEnabled(true); + SetInputPanelLayout(InputPanelLayout.NumberOnly); + // InputPanelVariation is used to allow using deciaml point. + InputPanelVariation = s_VariationSignedAndDecimal; + } else { SetInputPanelEnabled(true); SetInputPanelLayout((InputPanelLayout)keyboard); + InputPanelVariation = s_VariationNormal; } } |