<?xml version="1.0" encoding="utf-8"?>
<UserControl
    x:Class="MangaReader.WinUI.Views.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MangaReader.WinUI.Views"
    xmlns:vm="using:MangaReader.WinUI.ViewModels"
    xmlns:search="using:MangaReader.Core.Search"
    xmlns:UI="using:CommunityToolkit.WinUI"
    xmlns:Controls="using:CommunityToolkit.WinUI.Controls"
    xmlns:Media="using:CommunityToolkit.WinUI.Media"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    DataContext="{Binding Source={StaticResource Locator}, Path=MainViewModel}"
    d:DataContext="{d:DesignInstance Type=vm:MainViewModel, IsDesignTimeCreatable=True}"
    mc:Ignorable="d">
    
    <NavigationView IsBackEnabled="False" IsBackButtonVisible="Collapsed" SelectionChanged="nvSample_SelectionChanged">
        <NavigationView.MenuItems>
            <NavigationViewItem Icon="Library" Content="Library" Tag="Library" />
            <NavigationViewItem Icon="Find" Content="Search" Tag="Search" />
        </NavigationView.MenuItems>
        <Frame x:Name="ContentFrame"/>
    </NavigationView>
    
</UserControl>
