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

PropertyTypeDescription
BackgroundImageStringThe background image for the display.
IsAppBarVisibleBooleanA value that indicates whether the top app bar should be visible.
IsNavigationBarVisibleBooleanAn Android specific setting that indicates whether the bottom navigation bar should be shown.
IsSafeAreaEnabledBooleanAn 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.
IsSettingsVisibleBooleanA value that indicates whether the settings button is shown.
IsStatusBarVisibleBooleanA value that indicates whether the status bar should be visible.
PrimaryCommandsArrayThe commands that appear in the app bar.
SecondaryCommandsArrayThe commands that appear in the 'more' (three dots) menu on the top right of app bar.
TitleStringThe title that displays in the app bar.

Events

EventDescription
LoadedOccurs when the element is laid out, rendered, and ready for interaction.
UnloadedOccurs when the element is no longer rendered on the screen.