<!-- Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See LICENSE in the project root for license information. -->
<local:TestPage
    x:Class="MUXControlsTestApp.NavigationViewRS3Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:MUXControlsTestApp"
    xmlns:muxcontrols="http://schemas.modernwpf.com/2019"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition x:Name="MainGridRow" Height="*" />
        </Grid.RowDefinitions>
        <muxcontrols:NavigationView x:Name="NavView"
            AutomationProperties.Name="NavView" 
            AutomationProperties.AutomationId="NavView"
            PaneTitle="NavView theme resource test"
            HorizontalAlignment="Left"
            VerticalAlignment="Top"
            Header="Home"
            ExpandedModeThresholdWidth="1"
            Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
            IsSettingsVisible="false">
            <ScrollViewer Margin="8,0,0,0">
                <StackPanel>
                    <CheckBox
                            x:Name="IsPaneOpenCheckBox"
                            AutomationProperties.Name="IsPaneOpenCheckBox"
                            Content="IsPaneOpen"
                            IsChecked="{Binding IsPaneOpen, ElementName=NavView, Mode=TwoWay}"
                            Margin="5"/>
                    <CheckBox x:Name="TestFrameCheckbox" AutomationProperties.Name="TestFrameCheckbox" Content="Show Test Frame" Checked="TestFrameCheckbox_Checked" Unchecked="TestFrameCheckbox_Unchecked" IsChecked="False"  Margin="5"/>
                    <Button x:Name="GetTopPaddingHeight" AutomationProperties.Name="GetTopPaddingHeight" Content="GetTopPaddingHeight" Click="GetTopPaddingHeight_Click" />
                    <Button x:Name="GetToggleButtonRowHeight" AutomationProperties.Name="GetToggleButtonRowHeight" Content="GetToggleButtonRowHeight" Click="GetToggleButtonRowHeight_Click" />
                    <TextBox x:Name="TestResult" AutomationProperties.AutomationId="TestResult" AutomationProperties.Name="TestResult" IsReadOnly="True" />
                </StackPanel>
            </ScrollViewer>
        </muxcontrols:NavigationView>
    </Grid>
</local:TestPage>
