-
Notifications
You must be signed in to change notification settings - Fork 75
ExtendedPage
Rico Suter edited this page Jun 6, 2015
·
3 revisions
- Package: MyToolkit.Extended
- Platforms: WP7SL, WP8SL
See paging for an overview.
- Inherits from PhoneApplicationPage
It is highly recommended to always use this class (or AnimatedPage)#
Features:
- OnNavigatingFromAsync(): Async virtual method with possibility to call async methods and change the cancelled property after the task has finished.
- AddKeyBackPressedHandler() and AddBackKeyPressAsyncHandler(): Register key back handlers with correct order and ignored handlers when a previous handler cancels the event.
- Navigation methods which check whether the user is already navigating
Important: The method OnBackKeyPressed()
cannot be overriden, use the AddBackKeyPressed*()
methods instead. Also don't use the BackKeyPressed
event but the new methods. The registered handlers are called in the correct order and only the required handlers (only if the event has not been cancelled) are called. This behaviour needed for external components like popups which have to react on the underlying page's back key events.
Moved to MtPage