Class Naviframe
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
- API Level:
- preview
The Naviframe is a widget to stand for the navigation frame. It's a views manager for applications. Inherits Widget.
C#Copypublic class Naviframe : Widget, IAccessibleObject
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic Naviframe(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The parent is a given container which will be attached by Naviframe as a child. It's EvasObject type. |
API Level: preview
Properties
Declaration
C#Copypublic bool DefaultBackButtonEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Declaration
C#Copypublic IReadOnlyList<NaviItem> NavigationStack { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<NaviItem> |
API Level: preview
Declaration
C#Copypublic bool PreserveContentOnPop { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
API Level: preview
Methods
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |
Overrides
API Level: preview
InsertAfter(NaviItem, EvasObject)
Inserts a new item into the naviframe after the item. The title is "" and the style is null.
Declaration
C#Copypublic NaviItem InsertAfter(NaviItem after, EvasObject content)
Parameters
Type | Name | Description |
---|---|---|
NaviItem | after | The item for which a new item is inserted after. |
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
InsertAfter(NaviItem, EvasObject, String)
Inserts a new item into the naviframe after the item. The style is null.
Declaration
C#Copypublic NaviItem InsertAfter(NaviItem after, EvasObject content, string title)
Parameters
Type | Name | Description |
---|---|---|
NaviItem | after | The item which a new item is inserted after. |
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
System.String | title | The current item title. Null would be default. |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
InsertAfter(NaviItem, EvasObject, String, String)
Inserts a new item into the naviframe after the item.
Declaration
C#Copypublic NaviItem InsertAfter(NaviItem after, EvasObject content, string title, string style)
Parameters
Type | Name | Description |
---|---|---|
NaviItem | after | The item for which a new item is inserted after. |
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
System.String | title | The current item title. Null would be default. |
System.String | style | The current item style name. Null would be default. |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
InsertBefore(NaviItem, EvasObject)
Inserts a new item into the naviframe before the item. The title is "" and the style is null.
Declaration
C#Copypublic NaviItem InsertBefore(NaviItem before, EvasObject content)
Parameters
Type | Name | Description |
---|---|---|
NaviItem | before | The item for which a new item is inserted before. |
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
InsertBefore(NaviItem, EvasObject, String)
Inserts a new item into the naviframe before the item. The style is null.
Declaration
C#Copypublic NaviItem InsertBefore(NaviItem before, EvasObject content, string title)
Parameters
Type | Name | Description |
---|---|---|
NaviItem | before | The item for which a new item is inserted before. |
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
System.String | title | The current item title. Null would be default. |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
InsertBefore(NaviItem, EvasObject, String, String)
Inserts a new item into the naviframe before the item.
Declaration
C#Copypublic NaviItem InsertBefore(NaviItem before, EvasObject content, string title, string style)
Parameters
Type | Name | Description |
---|---|---|
NaviItem | before | The item for which a new item is inserted before. |
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
System.String | title | The current item title. Null would be default. |
System.String | style | The current item style name. Null would be default. |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
Declaration
C#Copypublic void Pop()
API Level: preview
Push(EvasObject)
Pushes a new item to the top of the naviframe stack and shows it. The title and style are null.
Declaration
C#Copypublic NaviItem Push(EvasObject content)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
Push(EvasObject, String)
Pushes a new item to the top of the naviframe stack and shows it. The style is null.
Declaration
C#Copypublic NaviItem Push(EvasObject content, string title)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
System.String | title | The current item title. Null would be default. |
Returns
Type | Description |
---|---|
NaviItem |
API Level: preview
Push(EvasObject, String, String)
Pushes a new item to the top of the naviframe stack and shows it.
Declaration
C#Copypublic NaviItem Push(EvasObject content, string title, string style)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | content | The main content object. The name of the content part is "elm.swallow.content". |
System.String | title | The current item title. Null would be default. |
System.String | style | The current item style name. Null would be default. |
Returns
Type | Description |
---|---|
NaviItem | The created item, or null upon failure. |
API Level: preview
Events
Declaration
C#Copypublic event EventHandler AnimationFinished
Event Type
Type | Description |
---|---|
System.EventHandler |
API Level: preview
Declaration
C#Copypublic event EventHandler<NaviframeEventArgs> Popped
Event Type
Type | Description |
---|---|
System.EventHandler<NaviframeEventArgs> |
Remarks
It is always called when the NaviItem is removed. (even if removed by NaviItem.Delete()) This event will be invoked in progress of the Pop/Delete operation. After calling the Popped event, the Pop/Delete method will be returned.