summaryrefslogtreecommitdiff
path: root/ElmSharp.Test
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-04-27 07:26:45 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-04-27 07:26:45 +0000
commitb449cfb1b97fc9d0d3835be6e05445aca7b4c14d (patch)
tree19c9887036a0e9659147a475727a9058b661b805 /ElmSharp.Test
parent4b6e15f680e71ef222e7b5f4257449189a349c8e (diff)
parent59ea4786ba1d55db51c52940fcf191526b74efa9 (diff)
downloadelm-sharp-b449cfb1b97fc9d0d3835be6e05445aca7b4c14d.tar.gz
elm-sharp-b449cfb1b97fc9d0d3835be6e05445aca7b4c14d.tar.bz2
elm-sharp-b449cfb1b97fc9d0d3835be6e05445aca7b4c14d.zip
Merge "Add IsIndicatorFocusable property in Slider" into tizen
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