ContentPage
Overview
Tizen.NUI.Components.ContentPage class helps to organize a formatted full screen page. ContentPage
is composed of AppBar and Content properties.
AppBar
property indicates the region to show the title of ContentPage
. Tizen.NUI.Components.AppBar class instance is set to AppBar
property to show a back button (NavigationContent), title (Title), and action buttons (Actions).
Content
property indicates the region to show the main content of the screen. A View
with objects which organizes the main content of the screen is set to Content
property.
Example code
The following example shows how to create a ContentPage
:
C#
Copy
ContentPage contentPage = new ContentPage
{
AppBar = new AppBar()
{
Title = "Title",
},
Content = new TextLabel()
{
Text = "This is the content of the page.",
WidthSpecification = LayoutParamPolicied.MatchParent,
HeightSpecification = LayoutParamPolicied.MatchParent,
HorizontalAlignment = HorizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Center,
},
};
// Pushes the ContentPage to the default Navigator.
NUIApplication.GetDefaultWindow().GetDefaultNavigator().Push(contentPage);
You can scroll this table.
Related information
- Dependencies
- Tizen 6.5 and Higher
Submit your feedback to GitHub