.NET MAUI NavigationView Commands
The .NET MAUI NavigationView provides commands that allow you to initiate open or close actions for the pane and toggle its state.
The available commands are:
-
OpenPaneCommand
(ICommand
)—Gets the command which opens the pane. -
ClosePaneCommand
(ICommand
)—Gets the command which closes the pane. -
TogglePaneCommand
(ICommand
)—Gets the command which opens and closes the pane.
Here is an example how to use the commands:
1. Bind the NavigationView commands to buttons command:
2. Define the NavigationView control:
3. Add the telerik
namespaces: