Content Page
Represents a page that displays a layout of Controls.
Remarks
ContentPages are typically childs of either a NavigationPage or a TabbedPage. They share many of the same properties. These shared properties when left blank will inherit from their parent. In other words, if you've set the BackgroundImage in MainPage.xaml & you also wish to also display on this same image on ContentPage, you do not need to set it again. This rule applies to the following properties: BackgroundImage, IsAppBarVisible, IsNavigationBarVisible, IsSafeAreaEnabled, IsStatusBarVisible.
Properties
Property | Type | Description |
---|---|---|
BackgroundImage | String | The background image for the display. |
IsAppBarVisible | Boolean | A value that indicates whether the top app bar should be visible. |
IsNavigationBarVisible | Boolean | An Android specific setting that indicates whether the bottom navigation bar should be shown. |
IsSafeAreaEnabled | Boolean | An iOS specific setting that is used to ensure that page content is positioned on an area of the screen that is safe for all devices that use iOS 11 and greater. Specifically, it will help to make sure that content isn't clipped by rounded device corners, the home indicator, or the sensor housing on an iPhone X. |
IsSettingsVisible | Boolean | A value that indicates whether the settings button is shown. |
IsStatusBarVisible | Boolean | A value that indicates whether the status bar should be visible. |
PrimaryCommands | Array | The commands that appear in the app bar. |
SecondaryCommands | Array | The commands that appear in the 'more' (three dots) menu on the top right of app bar. |
Title | String | The title that displays in the app bar. |
Events
Event | Description |
---|---|
Loaded | Occurs when the element is laid out, rendered, and ready for interaction. |
Unloaded | Occurs when the element is no longer rendered on the screen. |