summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Native/Entry.cs
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-10-23 07:27:57 (GMT)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-10-23 07:27:58 (GMT)
commit08b29b0798f62c13a722ec9c92a749e4b142778e (patch)
treee8a5f7faeef12c127deb81fa780198e929853518 /Xamarin.Forms.Platform.Tizen/Native/Entry.cs
parent46e568d0cc6bd134fdfd73ca62b1c6549b37d6a4 (diff)
parent18840c4d9341d1926d1913f715deb60aacfd1162 (diff)
downloadxamarin-forms-08b29b0798f62c13a722ec9c92a749e4b142778e.zip
xamarin-forms-08b29b0798f62c13a722ec9c92a749e4b142778e.tar.gz
xamarin-forms-08b29b0798f62c13a722ec9c92a749e4b142778e.tar.bz2
Merge "Fixed incorrect appearance and behavior of Entry Keyboard Property." into tizen
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 8276aaa..9b84cb3 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;
}
}