ContentView
Content in the constructor.Properties
BackButtonStyle
How the next pushed page's back button represents this page.
Type: BackButtonStyle
BackButtonTitle
The back button title the next pushed page shows, or null for this page's title.
Type: string?
BackgroundStyle
The page's background style.
Type: PageBackground
BarTint
The tint for this page's bar buttons and back button, or null for the app tint.
Type: Color?
BottomToolbarItems
Buttons along the screen's bottom edge.
The toolbar stays hidden while a tab bar occupies the bottom edge. A pushed page can set
HidesTabBarto show its bottom toolbar in place of the tab bar.
Type: IList<ToolbarItem>
ConfirmLeave
Asked before the page is left, so unsaved changes can veto leaving.
Fires for the back button, a sheet swipe or a popover tap-out; return
falseto stay.Leave it null while nothing needs guarding, which also disables the interactive pop-back swipe.
Content
The page's element tree.
Type: View?
Controller
The native controller hosting this page, or null before it is presented.
Type: UIViewController?
HidesNavigationBar
Hides the navigation bar for this page.
Type: bool
HidesSearchBarWhenScrolling
Whether the search bar collapses into the bar as the content scrolls.
Type: bool
HidesSearchScopesWhenEmpty
Whether search scopes stay hidden until the search field contains text.
Type: bool
HidesTabBar
Hides the tab bar while this page is on top of the stack.
Type: bool
LargeTitleColor
The expanded large title's color, or null for the system default.
Type: Color?
Prompt
The small line of text above the navigation title, or null for none.
SafeAreaEdges
Which edges the page keeps clear of the safe area.
Type: SafeAreaEdges
ScrollsUnderBars
Whether scrolling content passes under the navigation bar so the bar blurs over it.
Type: bool
SearchCanceled
Invoked when the user cancels out of the search field.
Type: Action?
SearchChanged
Invoked as the user types in the search field.
SearchCommand
Command invoked when the user submits the current search text.
Type: ICommand?
SearchObscuresBackground
Whether the content dims behind an active search.
Type: bool
SearchPlaceholder
Placeholder for the navigation bar's search field.
Setting it shows the search bar.
Type: string?
SearchScopeChanged
Invoked with the selected index when the user switches search scope.
SearchScopeIndex
The selected search scope index.
SearchScopes
Titles of the scope buttons under an active search field. Empty for none.
SearchText
The search field's text.
StatusBar
The status bar look for this page.
Type: StatusBarStyle
TabBadge
The badge on this page's tab bar item, or null for none.
Applies before the tab is opened.
TabBadgeColor
The badge's background color, or null for the system red.
Type: Color?
TabReselectedCommand
Command invoked when this page's tab is tapped while already selected, replacing the default pop-to-root / scroll-to-top.
Type: ICommand?
TabReselectedCommandParameter
The parameter passed to TabReselectedCommand.
Type: object?
Title
The navigation bar title.
TitleColor
The navigation title's color, or null for the system default.
Type: Color?
TitleStyle
Whether the title is shown large and collapses as the content scrolls.
Type: TitleStyle
ToolbarItems
Buttons in the navigation bar.
Type: IList<ToolbarItem>
Methods
ArrangeOverride
Content arrangement. Panels override to place their children.
| Parameter | Summary |
|---|---|
Size finalSize | The final size available for the view's content. |
Returns
Size: The arranged content size.
MeasureOverride
Content measurement. Panels recurse; controls delegate to the native SizeThatFits.
| Parameter | Summary |
|---|---|
Size availableSize | The size available for the view's content. |
Returns
Size: The desired content size.
OnAppeared
Raised after the page appears on screen.
OnAppearing
Raised before the page appears on screen.
OnDisappeared
Raised after the page leaves the screen.
OnDisappearing
Raised before the page leaves the screen.
OnLoaded
Raised once, the first time the page is realized.
OnUnloaded
Raised when the page's tree is torn down.