# Getting Started with the .NET MAUI NavigationView control

This guide provides the information you need to start using the Telerik UI for .NET MAUI NavigationView by adding the control to your project.

At the end, you will be able to achieve the following result.

![.NET MAUI NavigationView Getting Started](https://www.telerik.com/maui-ui/documentation/assets/43bf29f0ab16684aa7a2c9074724ea22/navigationview-getting-started.gif)

## Prerequisites

Before adding the NavigationView, you need to:

1. [Set up your .NET MAUI application](https://www.telerik.com/maui-ui/documentation/get-started/quickstart#prerequisites).

2. [Set Up Telerik Development Environment](https://www.telerik.com/maui-ui/documentation/get-started/quickstart#set-up-telerik-development-environment)

## Define the Control

When your .NET MAUI application is set up, you are ready to add a NavigationView control to your page.

**1.** Define the NavigationView in XAML:

```XAML
<telerik:RadNavigationView x:Name="navigationView" AutomationId="navigationView">
    <telerik:RadNavigationView.Items>
        <telerik:NavigationViewItem Text="Item 1" />
        <telerik:NavigationViewItem Text="Item 2" />
        <telerik:NavigationViewItem Text="Item 3" />
        <telerik:NavigationViewItem Text="Item 4" />
        <telerik:NavigationViewItem Text="Item 5" />
    </telerik:RadNavigationView.Items>
    <telerik:RadNavigationView.Content>
        <Label HorizontalOptions="Center"
               VerticalOptions="Center"
               Text="{Binding SelectedItem.Text, Source={x:Reference navigationView}}" />
    </telerik:RadNavigationView.Content>
</telerik:RadNavigationView>
```

> important `RadNavigationView` provides a read only collection `Items` of type `IList<NavigationViewItemBase>`.

**2.** Add the `telerik` namespace:

```XAML
xmlns:telerik="http://schemas.telerik.com/2022/xaml/maui"
```

**3.** Register the Telerik controls through the `Telerik.Maui.Controls.Compatibility.UseTelerik` extension method called inside the `CreateMauiApp` method of the `MauiProgram.cs` file of your project:

```C#
using Telerik.Maui.Controls.Compatibility;

public static class MauiProgram
{
	public static MauiApp CreateMauiApp()
	{
		var builder = MauiApp.CreateBuilder();
		builder
			.UseTelerik()
			.UseMauiApp<App>()
			.ConfigureFonts(fonts =>
			{
				fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
			});

		return builder.Build();
	}
}           
```

> For the NavigationView Getting Started example refer to the [SDKBrowser Demo Application](https://www.telerik.com/maui-ui/documentation/demos-and-sample-apps/sdkbrowser-app).

## Additional Resources

* [.NET MAUI NavigationView Forum Page](https://www.telerik.com/forums/maui?tagId=1978)
* [Telerik .NET MAUI Blogs](https://www.telerik.com/blogs/mobile-net-maui)
* [Telerik .NET MAUI Roadmap](https://www.telerik.com/support/whats-new/maui-ui/roadmap)

## See Also

* [Setting different Display Mode](https://www.telerik.com/maui-ui/documentation/controls/navigationview/display-mode)
* [Selecting an item](https://www.telerik.com/maui-ui/documentation/controls/navigationview/selection)
* [Configure the Navigation Pane](https://www.telerik.com/maui-ui/documentation/controls/navigationview/pane)
* [Configure the Navigation Item](https://www.telerik.com/maui-ui/documentation/controls/navigationview/item)
* [Configure the Navigation Header](https://www.telerik.com/maui-ui/documentation/controls/navigationview/header)
* [Navigation Item Styling](https://www.telerik.com/maui-ui/documentation/controls/navigationview/styling/navigationitem)
* [Navigation Pane Styling](https://www.telerik.com/maui-ui/documentation/controls/navigationview/styling/pane)
* [Navigation Header Styling](https://www.telerik.com/maui-ui/documentation/controls/navigationview/styling/navigationview)
* [Events](https://www.telerik.com/maui-ui/documentation/controls/navigationview/events)
* [Commands](https://www.telerik.com/maui-ui/documentation/controls/navigationview/commands)
