Hovo
Hovo

Reputation: 790

How to call method on previous page?

is there any way to call method or set propery of the previous page in the stack? Say I started a thread in the A page, then navigated to page B, now my application is going to be deactivated and I want to take care of the thread started in the page A, I want to call a method of A that will save thread job's some parameters. Thank you.

Upvotes: 2

Views: 444

Answers (1)

Richard Szalay
Richard Szalay

Reputation: 84734

You cannot call a method on a previous page.

You should be deactivating the thread when you leave page A. If that doesn't work for your application, then the thread is an application-level feature and should be created/deactivated in Application class.

Upvotes: 1

Related Questions