diff options
author | Seunghyun Choi <sh4682.choi@samsung.com> | 2017-05-02 16:30:10 +0900 |
---|---|---|
committer | Seunghyun Choi <sh4682.choi@samsung.com> | 2017-05-02 16:30:21 +0900 |
commit | acd3cdc5842a5421aa0a70354dbd61a2d8f7066d (patch) | |
tree | 07a080964273b3d1e3f897a5f4fc6611b4e5700d /ElmSharp.Test | |
parent | b449cfb1b97fc9d0d3835be6e05445aca7b4c14d (diff) | |
download | elm-sharp-acd3cdc5842a5421aa0a70354dbd61a2d8f7066d.tar.gz elm-sharp-acd3cdc5842a5421aa0a70354dbd61a2d8f7066d.tar.bz2 elm-sharp-acd3cdc5842a5421aa0a70354dbd61a2d8f7066d.zip |
[Slider] Add Property IndicatorVisibleMode
- Add IndicatorVisibleMode Property
- Add TC in SliderTest1
Change-Id: I75bf93c0736183d2c1ff195feb221382de55149d
Signed-off-by: Seunghyun Choi <sh4682.choi@samsung.com>
Diffstat (limited to 'ElmSharp.Test')
-rw-r--r-- | ElmSharp.Test/TC/SliderTest1.cs | 36 |
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) => { |