summaryrefslogtreecommitdiff
path: root/ElmSharp.Test
diff options
context:
space:
mode:
authorSeunghyun Choi <sh4682.choi@samsung.com>2017-04-25 19:30:29 +0900
committerSeungkeun Lee <sngn.lee@samsung.com>2017-04-26 01:02:47 +0000
commit59ea4786ba1d55db51c52940fcf191526b74efa9 (patch)
treeb1cf2f98dd78d7946e0c007db8567b2308b23d2d /ElmSharp.Test
parente8046eaa049905d962a83a65c43b076be4e90853 (diff)
downloadelm-sharp-59ea4786ba1d55db51c52940fcf191526b74efa9.tar.gz
elm-sharp-59ea4786ba1d55db51c52940fcf191526b74efa9.tar.bz2
elm-sharp-59ea4786ba1d55db51c52940fcf191526b74efa9.zip
Add IsIndicatorFocusable property in Slider
- need to TV UIComponents Change-Id: Id2a84bb4185f5473935abe4bb23f00f4a4577303 Signed-off-by: Seunghyun Choi <sh4682.choi@samsung.com>
Diffstat (limited to 'ElmSharp.Test')
-rw-r--r--ElmSharp.Test/TC/SliderTest1.cs29
1 files changed, 26 insertions, 3 deletions
diff --git a/ElmSharp.Test/TC/SliderTest1.cs b/ElmSharp.Test/TC/SliderTest1.cs
index 200d770..9113836 100644
--- a/ElmSharp.Test/TC/SliderTest1.cs
+++ b/ElmSharp.Test/TC/SliderTest1.cs
@@ -46,7 +46,28 @@ namespace ElmSharp.Test
AlignmentX = -1,
AlignmentY = 0.5,
WeightX = 1,
- WeightY = 1
+ WeightY = 1,
+ IsIndicatorFocusable = true
+ };
+
+ Button btn = new Button(window)
+ {
+ AlignmentX = -1,
+ AlignmentY = 0,
+ WeightX = 1,
+ WeightY = 1,
+ Text = "Set IsIndicatorFocusable"
+ };
+ btn.Clicked += (s, e) =>
+ {
+ if (sld1.IsIndicatorFocusable)
+ {
+ sld1.IsIndicatorFocusable = false;
+ }
+ else
+ {
+ sld1.IsIndicatorFocusable = true;
+ }
};
Label lb1 = new Label(window)
@@ -58,9 +79,11 @@ namespace ElmSharp.Test
};
table.Pack(sld1, 1, 1, 2, 1);
- table.Pack(lb1, 1, 2, 2, 1);
+ table.Pack(btn, 1, 2, 2, 1);
+ table.Pack(lb1, 1, 3, 2, 1);
sld1.Show();
+ btn.Show();
lb1.Show();
sld1.ValueChanged += (s, e) =>
@@ -70,4 +93,4 @@ namespace ElmSharp.Test
};
}
}
-}
+} \ No newline at end of file