<?xml version="1.0" encoding="utf-8" ?>
<winuiex:WindowEx
    x:Class="Wino.Mail.WinUI.ShellWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="using:Wino.Mail.WinUI"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:winuiex="using:WinUIEx"
    Title="ShellWindow"
    mc:Ignorable="d">

    <winuiex:WindowEx.SystemBackdrop>
        <!--  TODO: Reach to ThemeService changes.  -->
        <MicaBackdrop />
    </winuiex:WindowEx.SystemBackdrop>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <TitleBar
            x:Name="ShellTitleBar"
            Title="{x:Bind StatePersistanceService.CoreWindowTitle, Mode=OneWay}"
            BackRequested="BackButtonClicked"
            IsBackButtonVisible="{x:Bind StatePersistanceService.IsBackButtonVisible, Mode=OneWay}"
            IsPaneToggleButtonVisible="True"
            PaneToggleRequested="PaneButtonClicked" />

        <Frame
            x:Name="MainShellFrame"
            Grid.Row="1"
            Navigated="MainFrameNavigated" />
    </Grid>
</winuiex:WindowEx>
