summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native/Entry.cs
diff options
context:
space:
mode:
authordarkleem <cdark.lim@samsung.com>2017-10-12 21:29:32 +0900
committerdarkleem <cdark.lim@samsung.com>2017-10-23 16:20:53 +0900
commit18840c4d9341d1926d1913f715deb60aacfd1162 (patch)
treec4f70b031ce410099f5924ff618a0964685a7c50 /Xamarin.Forms.Platform.Tizen/Native/Entry.cs
parent00b2a18605b34c092c8fb588188353c300e7bba1 (diff)
downloadxamarin-forms-18840c4d9341d1926d1913f715deb60aacfd1162.tar.gz
xamarin-forms-18840c4d9341d1926d1913f715deb60aacfd1162.tar.bz2
xamarin-forms-18840c4d9341d1926d1913f715deb60aacfd1162.zip
Fixed incorrect appearance and behavior of Entry Keyboard Property.
- TASK=TCAPI-2718 - refernce link : https://developer.xamarin.com/recipes/cross-platform/xamarin-forms/controls/choose-keyboard-for-entry/ Change-Id: I347a70208e3bd9baa43cc08b537d3da22efdb8be Signed-off-by: darkleem <cdark.lim@samsung.com>
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Native/Entry.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Native/Entry.cs11
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;
}
}