Class AppBar
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
The AppBar class is a class which shows title text and provides navigation and action functions on Page.
C#Copypublic class AppBar : Control, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
System.ObjectTizen.NUI.Binding.ElementTizen.NUI.Components.ControlAppBar
- Implements
-
System.ComponentModel.INotifyPropertyChangedSystem.IDisposable
Constructors
Declaration
C#Copypublic AppBar()
API Level: 9
Declaration
C#Copypublic AppBar(string style)
Parameters
Type | Name | Description |
---|---|---|
System.String | style | Creates AppBar by special style defined in UX. |
API Level: 9
Declaration
C#Copypublic AppBar(AppBarStyle appBarStyle)
Parameters
Type | Name | Description |
---|---|---|
AppBarStyle | appBarStyle | Creates AppBar by style customized by user. |
API Level: 9
Properties
ActionContent
Action content of AppBar. ActionContent is added as a child of AppBar automatically. Action content contains action views and action buttons by Actions. The Action and ActionButton styles of AppBarStyle are applied to actions only by setting Actions.
Declaration
C#Copypublic View ActionContent { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
Actions
Action views of AppBar. Action views are added to ActionContent of AppBar. If action views and action buttons are set to Actions, then proper style look for action views and action buttons are automatically applied to action views and action buttons. e.g. size, button icon color, etc. If you do not want to apply framework's style look for action views and action buttons, then please use ActionContent.Add(actionView) instead of setting Actions.
Declaration
C#Copypublic IEnumerable<View> Actions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<View> |
API Level: 9
AutoNavigationContent
Flag to indicate if default navigation content is automatically set or not. The default value is true. If AutoNavigationContent is set to be true and NavigationContent is not set, then default navigation content is automatically displayed. If default navigation content is clicked, the back navigation proceeds.
Declaration
C#Copypublic bool AutoNavigationContent { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
API Level: 9
NavigationContent
Navigation content of AppBar. NavigationContent is added as a child of AppBar automatically. If AutoNavigationContent is set to be true and NavigationContent is not set, then default navigation content is automatically displayed.
Declaration
C#Copypublic View NavigationContent { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
Title
Title text of AppBar. Title sets title text to the default title content. If TitleContent is not TextLabel, then Title does not set title text of the TitleContent.
Declaration
C#Copypublic string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 9
TitleContent
Title content of AppBar. TitleContent is added as a child of AppBar automatically. If TitleContent is not TextLabel, then Title does not set title text of the TitleContent.
Declaration
C#Copypublic View TitleContent { get; set; }
Property Value
Type | Description |
---|---|
View |
API Level: 9
Methods
Declaration
C#Copypublic override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |