.NET MAUI NavigationView Header
The Telerik UI for .NET MAUI NavigationView control has a navigation header. The header contains a toggle navigation button (for opening and closing the navigation page) and a navigation content (by default label with a text).
You can customize the header by setting the HeaderText
or HeaderTemplate
properties.
Configuring the Header
-
HeaderText
(string
)—Defines the text that is displayed in the NavigationView header. -
HeaderTemplate
(DataTemplate
)—Specifies the content template for the NavigationView header. -
HeaderStyle
(string
)—Specifies the style applied to the header, this includes the text and the navigation button. For more details, review the NavigationView Header Styling article.
Example
Here is an example for HeaderTemplate
:
1. Define the RadNavigationView
:
2. Define the HeaderTemplate
:
3. Add the telerik
namespace:
Toggle Navigation Button
The NavigationViewToggleButton
represents a toggle button that opens or closes the NavigationViewPane
. The button is part of the NavigationView header.
You can style the button through the HeaderStyle
property of the RadNavigationView
. For more details, review the NavigationView Header Styling article.
For the runnable NavigationView Header example, see the SDKBrowser Demo Application and go to NavigationView > Features category.