Fix - nav button with reflection

This commit is contained in:
vakrilov
2015-07-09 13:48:58 +03:00
parent e52b0c4556
commit 5c86e042c1
4 changed files with 59 additions and 29 deletions

View File

@@ -18,3 +18,21 @@ export function buttonTap(args: observable.EventData) {
}
}
var j = 0;
export function visibilityTap(args: observable.EventData) {
var page = <pages.Page>view.getAncestor(<view.View>args.object, "Page")
if (j % 3 === 0) {
page.actionBar.androidIconVisibility = "always";
}
else if (j % 3 === 1) {
page.actionBar.androidIconVisibility = "never";
}
else if (j % 3 === 2) {
page.actionBar.androidIconVisibility = "auto";
}
j++;
console.log("Visibility changed to: " + page.actionBar.androidIconVisibility);
}

View File

@@ -4,5 +4,6 @@
</Page.actionBar>
<StackLayout>
<Button text="button" tap="buttonTap"/>
<Button text="change main icon visibility" tap="visibilityTap"/>
</StackLayout>
</Page>

View File

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB