summaryrefslogtreecommitdiff
path: root/ElmSharp.Test
diff options
context:
space:
mode:
authorJeonghyun Yun <jh0506.yun@samsung.com>2017-05-31 01:07:02 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-05-31 01:07:02 +0000
commitdab8589fe406f4a67f007217c7ccbdbbd954dd21 (patch)
treec0f0dabadb6163dc27f312ccabf6893ebcf9f8ee /ElmSharp.Test
parentc30bfcb0dafc623df84e183d002497b423f8e1ee (diff)
parentacd3cdc5842a5421aa0a70354dbd61a2d8f7066d (diff)
downloadelm-sharp-dab8589fe406f4a67f007217c7ccbdbbd954dd21.tar.gz
elm-sharp-dab8589fe406f4a67f007217c7ccbdbbd954dd21.tar.bz2
elm-sharp-dab8589fe406f4a67f007217c7ccbdbbd954dd21.zip
Merge "[Slider] Add Property IndicatorVisibleMode" into tizen
Diffstat (limited to 'ElmSharp.Test')
-rw-r--r--ElmSharp.Test/TC/SliderTest1.cs36
1 files changed, 35 insertions, 1 deletions
diff --git a/ElmSharp.Test/TC/SliderTest1.cs b/ElmSharp.Test/TC/SliderTest1.cs
index 9113836..c59b9a8 100644
--- a/ElmSharp.Test/TC/SliderTest1.cs
+++ b/ElmSharp.Test/TC/SliderTest1.cs
@@ -70,6 +70,38 @@ namespace ElmSharp.Test
}
};
+ Button btn2 = new Button(window)
+ {
+ AlignmentX = -1,
+ AlignmentY = 0,
+ WeightX = 1,
+ WeightY = 1,
+ Text = "Set IndicatorVisibleMode"
+ };
+ btn2.Clicked += (s, e) =>
+ {
+ if (sld1.IndicatorVisibleMode == SliderIndicatorVisibleMode.Default)
+ {
+ sld1.IndicatorVisibleMode = SliderIndicatorVisibleMode.Always;
+ btn2.Text = "Always";
+ }
+ else if (sld1.IndicatorVisibleMode == SliderIndicatorVisibleMode.Always)
+ {
+ sld1.IndicatorVisibleMode = SliderIndicatorVisibleMode.OnFocus;
+ btn2.Text = "OnFocus";
+ }
+ else if (sld1.IndicatorVisibleMode == SliderIndicatorVisibleMode.OnFocus)
+ {
+ sld1.IndicatorVisibleMode = SliderIndicatorVisibleMode.None;
+ btn2.Text = "None";
+ }
+ else
+ {
+ sld1.IndicatorVisibleMode = SliderIndicatorVisibleMode.Default;
+ btn2.Text = "Default";
+ }
+ };
+
Label lb1 = new Label(window)
{
AlignmentX = -1,
@@ -80,11 +112,13 @@ namespace ElmSharp.Test
table.Pack(sld1, 1, 1, 2, 1);
table.Pack(btn, 1, 2, 2, 1);
- table.Pack(lb1, 1, 3, 2, 1);
+ table.Pack(btn2, 1, 3, 2, 1);
+ table.Pack(lb1, 1, 4, 2, 1);
sld1.Show();
btn.Show();
lb1.Show();
+ btn2.Show();
sld1.ValueChanged += (s, e) =>
{