Property renamed and bug fixes

This commit is contained in:
vakrilov
2015-07-16 13:54:19 +03:00
parent 4b594559a5
commit a458993d63
13 changed files with 72 additions and 46 deletions

View File

@@ -2,6 +2,7 @@
<Page>
<ScrollView>
<StackLayout>
<Button tap="itemTap" text="action bar hidden" tag="action-bar-hidden" />
<Button tap="itemTap" text="page title and icon" tag="page-title-icon" />
<Button tap="itemTap" text="navigation button" tag="navigation-button" />
<Button tap="itemTap" text="action items icons" tag="action-items-icon" />

View File

@@ -0,0 +1,9 @@
import pages = require("ui/page");
import view = require("ui/core/view");
var toggle = false;
export function toggleTap(args) {
var page = <pages.Page>view.getAncestor(<view.View>args.object, "Page")
page.actionBarHidden = toggle;
toggle = !toggle;
}

View File

@@ -0,0 +1,8 @@
<Page actionBarHidden="true">
<Page.actionBar>
<ActionBar title="Hide Test"/>
</Page.actionBar>
<StackLayout>
<Button text="hide/show" tap="toggleTap" />
</StackLayout>
</Page>