diff options
author | chungryeol lim <cdark.lim@samsung.com> | 2017-01-10 13:47:38 +0900 |
---|---|---|
committer | chungryeol lim <cdark.lim@samsung.com> | 2017-01-10 13:47:38 +0900 |
commit | 91cb595d5eac1e4619fa5b3f80205a46d852a07f (patch) | |
tree | 39241088c651657898bf10b33ef0a9d9f47a45aa /ElmSharp.Test | |
parent | 36fa27de886889ce222f23713bad782b5793b09e (diff) | |
download | elm-sharp-91cb595d5eac1e4619fa5b3f80205a46d852a07f.tar.gz elm-sharp-91cb595d5eac1e4619fa5b3f80205a46d852a07f.tar.bz2 elm-sharp-91cb595d5eac1e4619fa5b3f80205a46d852a07f.zip |
Fixed Naviitem.TitleBarBackgroundColor is Color.Default
Change-Id: I85ead73f548fda20126403a1dc3b695b50472b05
Signed-off-by: chungryeol lim <cdark.lim@samsung.com>
Diffstat (limited to 'ElmSharp.Test')
-rw-r--r-- | ElmSharp.Test/TC/NaviframeTest2.cs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/ElmSharp.Test/TC/NaviframeTest2.cs b/ElmSharp.Test/TC/NaviframeTest2.cs index 3de3e41..064640b 100644 --- a/ElmSharp.Test/TC/NaviframeTest2.cs +++ b/ElmSharp.Test/TC/NaviframeTest2.cs @@ -89,7 +89,14 @@ namespace ElmSharp.Test Button barChange = new Button(parent) { - Text = "TitleTextColor & BarColor", + Text = "TitleBarColor Change", + WeightX = 1, + AlignmentX = -1, + }; + + Button barColorDefault = new Button(parent) + { + Text = "TitleBarColor - Default", WeightX = 1, AlignmentX = -1, }; @@ -101,6 +108,7 @@ namespace ElmSharp.Test insertAfterTop.Show(); removeTop.Show(); barChange.Show(); + barColorDefault.Show(); push.Clicked += (s, e) => { @@ -144,6 +152,15 @@ namespace ElmSharp.Test } }; + barColorDefault.Clicked += (s, e) => + { + int currentIndex = _navi.NavigationStack.Count - 1; + if (currentIndex >= 0) + { + _navi.NavigationStack[currentIndex].TitleBarBackgroundColor = Color.Default; + } + }; + box.PackEnd(label); box.PackEnd(push); box.PackEnd(pop); @@ -151,6 +168,7 @@ namespace ElmSharp.Test box.PackEnd(insertAfterTop); box.PackEnd(removeTop); box.PackEnd(barChange); + box.PackEnd(barColorDefault); return box; } |