Class Page
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
The Page class is a class which is an element of navigation.
public abstract class Page : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
- Derived
- Implements
-
System.IDisposable
Constructors
View SourcePage()
Creates a new instance of a Page.
Declaration
public Page()
Page(string)
Creates a new instance of Page with style.
Declaration
public Page(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Creates Page by special style defined in UX. |
Page(ControlStyle)
Creates a new instance of a Page with style.
Declaration
public Page(ControlStyle style)
Parameters
Type | Name | Description |
---|---|---|
ControlStyle | style | A style applied to the newly created Page. |
Fields
View SourceAppearingTransitionProperty
AppearingTransitionProperty
Declaration
public static readonly BindableProperty AppearingTransitionProperty
Field Value
Type | Description |
---|---|
BindableProperty |
DisappearingTransitionProperty
DisappearingTransitionProperty
Declaration
public static readonly BindableProperty DisappearingTransitionProperty
Field Value
Type | Description |
---|---|
BindableProperty |
EnableBackNavigationProperty
EnableBackNavigationProperty
Declaration
public static readonly BindableProperty EnableBackNavigationProperty
Field Value
Type | Description |
---|---|
BindableProperty |
LastFocusedView
Declaration
protected View LastFocusedView
Field Value
Type | Description |
---|---|
View |
Properties
View SourceAppearingTransition
Transition properties for the transition of Views in this page during this page is pushed to Navigator.
Declaration
public TransitionBase AppearingTransition { get; set; }
Property Value
Type | Description |
---|---|
TransitionBase |
DisappearingTransition
Transition properties for the transition of Views in this page during this page is popped from Navigator.
Declaration
public TransitionBase DisappearingTransition { get; set; }
Property Value
Type | Description |
---|---|
TransitionBase |
EnableBackNavigation
Gets or sets if this page proceeds back navigation when back button or back key is pressed and released. Back navigation pops the peek page if Navigator has more than one page. If Navigator has only one page, then the current program is exited.
Declaration
public bool EnableBackNavigation { get; set; }
Property Value
Type | Description |
---|---|
bool |
Navigator
Navigator which has pushed the Page into its stack. If this Page has not been pushed into any Navigator, then Navigator is null.
Declaration
public Navigator Navigator { get; }
Property Value
Type | Description |
---|---|
Navigator |
Methods
View SourceOnBackNavigation(PageBackNavigationEventArgs)
Called when the back navigation is started. Back navigation pops the peek page if Navigator has more than one page. If Navigator has only one page, then the current program is exited.
Declaration
protected virtual void OnBackNavigation(PageBackNavigationEventArgs eventArgs)
Parameters
Type | Name | Description |
---|---|---|
PageBackNavigationEventArgs | eventArgs | The back navigation information. |
RestoreKeyFocus()
works only when DefaultAlgorithm is enabled. to set key focused View when showing.
Declaration
protected virtual void RestoreKeyFocus()
SaveKeyFocus()
works only when DefaultAlgorithm is enabled. to save the currently focused View when disappeared.
Declaration
protected virtual void SaveKeyFocus()
Events
View SourceAppeared
Appeared event is invoked right after the page appears.
Declaration
public event EventHandler<PageAppearedEventArgs> Appeared
Event Type
Type | Description |
---|---|
EventHandler<><PageAppearedEventArgs> |
Appearing
Appearing event is invoked right before the page appears.
Declaration
public event EventHandler<PageAppearingEventArgs> Appearing
Event Type
Type | Description |
---|---|
EventHandler<><PageAppearingEventArgs> |
Disappeared
Disappeared event is invoked right after the page disappears.
Declaration
public event EventHandler<PageDisappearedEventArgs> Disappeared
Event Type
Type | Description |
---|---|
EventHandler<><PageDisappearedEventArgs> |
Disappearing
Disappearing event is invoked right before the page disappears.
Declaration
public event EventHandler<PageDisappearingEventArgs> Disappearing
Event Type
Type | Description |
---|---|
EventHandler<><PageDisappearingEventArgs> |