ContentView
ContentHost.Content in the constructor.- Kind: Class
- Namespace: SkeleKit
- Inherits:
ContentHost
Constructors
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.
BarTint
The tint for this page's bar buttons and back button, or null for the app tint.
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.
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.
NavigationAccessory
A fixed, full-width view below the navigation title that shares the navigation bar's visual treatment.
Scrolling content passes beneath this view and UIKit includes its measured height in the top content inset. On iOS 27, setting an accessory disables navigation-bar minimization because UIKit does not expose a custom accessory slot that participates in that transition.
Type: View?
NavigationBarMinimizeBehavior
When the navigation bar minimizes as this page scrolls.
iOS 27 and later. The default keeps the bar expanded. Ignored while
NavigationAccessoryis set.
Type: NavigationBarMinimize
NavigationBarMinimizeRestorationBehavior
When a minimized navigation bar returns to full size.
iOS 27 and later.
NavigationBarMinimizeRestore.AtScrollEdgeis honored withNavigationBarMinimize.OnScrollDown.
Type: NavigationBarMinimizeRestore
NavigationBarMinimizeSafeAreaAdjustment
Whether the safe area changes while the navigation bar minimizes.
iOS 27 and later.
Type: NavigationBarMinimizeSafeArea
NavigationTitleStyle
How the navigation title is displayed, or null to inherit the app theme.
Type: TitleStyle?
Prompt
The small line of text above the navigation title, or null for none.
SafeAreaEdges
Which edges the page's content keeps clear of the safe area.
The page itself always fills the controller, so its background extends beneath system UI.
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.
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.
Type: BindableList<string>
SearchText
The search field's text.
StatusBar
The status bar look for this page.
Type: Bindable<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.
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.
ToolbarItems
Buttons in the navigation bar.
Type: IList<ToolbarItem>
TopScrollEdgeStyle
The treatment where scrolling content meets the page's top chrome, or null to inherit the app theme.
iOS 26 and later. The inherited default lets UIKit choose the appropriate treatment.
Type: ScrollEdgeStyle?
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.