.NET MAUI NavigationView Events
The .NET MAUI NavigationView emits a set of events that allow you to configure the component's behavior in response to specific user actions.
The .NET MAUI NavigationView exposes the following events:
-
The
SelectionChanged
—Raised when the currently selected NavigationView item has changed. TheSelectionChanged
event handler receives two parameters:- The
sender
argument, which is of typeobject
, but can be cast to theRadNavigationView
control. -
System.EventArgs
.
- The
-
The
ItemClicked
—Raised when the NavigationView item is clicked. TheItemClicked
event handler receives two parameters:- The
sender
argument, which is of typeobject
, but can be cast to theRadNavigationView
control. -
NavigationItem
(Telerik.Maui.Controls.NavigationView.NavigationViewItem
)—Gets the NavigationViewItem for which the interaction is performed.
- The
-
The
PaneOpened
—Raised when the Pane opening animation completes. ThePaneOpened
event handler receives two parameters:- The
sender
argument, which is of typeobject
, but can be cast to theRadNavigationView
control. -
System.EventArgs
.
- The
-
The
PaneClosed
—Raised when the Pane closing animation completed. ThePaneClosed
event handler receives two parameters:- The
sender
argument, which is of typeobject
, but can be cast to theRadNavigationView
control. -
System.EventArgs
.
- The
Events Example:
1. Define the NavigationView control:
2. Add the telerik
namespace:
3. The SelectionChanged
implementation:
4. The ItemClicked
implementation:
5. The PaneOpened
implementation:
6. The PaneClosed
implementation:
For the runnable NavigationView Events example, see the SDKBrowser Demo Application and go to NavigationView > Events category.