Since the page will be created on demand during the page push you can use 'Component.onCompleted' to execute your code, if you want to execute it only once. Or you can 'active' (onActiveChanged) property/signal to monitor when the page is the last page on the pageStack.
On Tue, Jan 19, 2016 at 3:39 PM, Sam Bull <sam.hack...@sent.com> wrote: > Is there a way for a Page component to automatically run some code > whenever it is pushed onto the pagestack? > -- > Mailing list: https://launchpad.net/~ubuntu-phone > Post to : ubuntu-phone@lists.launchpad.net > Unsubscribe : https://launchpad.net/~ubuntu-phone > More help : https://help.launchpad.net/ListHelp > -- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp