<?xml version="1.0" encoding="utf-8"?>
<Page
    x:Class="AppControlManager.Pages.GitHubDocumentation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:AppControlManager.Pages"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ui="using:CommunityToolkit.WinUI"
    xmlns:controls="using:CommunityToolkit.WinUI.Controls"
    xmlns:tk7controls="using:CommunityToolkit.WinUI.UI.Controls"
    xmlns:animations="using:CommunityToolkit.WinUI.Animations"
    mc:Ignorable="d">

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

        <!-- Navigation Bar -->
        <controls:WrapPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" HorizontalSpacing="5" VerticalSpacing="5" VerticalAlignment="Top" Margin="0,0,0,10">
            <!-- Back Button with Icon - Set initially to falce until it makes sense to be enabled -->
            <Button Click="BackButton_Click" IsEnabled="False" x:Name="BackButton">
                <StackPanel Orientation="Horizontal">
                    <SymbolIcon Symbol="Back"/>
                    <TextBlock Text="Back" Margin="5,0,0,0"/>
                </StackPanel>
            </Button>

            <!-- Forward Button with Icon - Set initially to falce until it makes sense to be enabled -->
            <Button Click="ForwardButton_Click" IsEnabled="False" x:Name="ForwardButton">
                <StackPanel Orientation="Horizontal">
                    <SymbolIcon Symbol="Forward"/>
                    <TextBlock Text="Forward" Margin="5,0,0,0"/>
                </StackPanel>
            </Button>

            <!-- Reload Button with Icon -->
            <Button Click="ReloadButton_Click">
                <StackPanel Orientation="Horizontal">
                    <SymbolIcon Symbol="Refresh"/>
                    <TextBlock Text="Reload" Margin="5,0,0,0"/>
                </StackPanel>
            </Button>

            <!-- Home Button with Icon -->
            <Button Click="HomeButton_Click">
                <StackPanel Orientation="Horizontal">
                    <!-- Using FontIcon to show a "Home" symbol from Segoe MDL2 Assets -->
                    <FontIcon Glyph="" FontFamily="Segoe MDL2 Assets"/>
                    <TextBlock Text="Home" Margin="5,0,0,0"/>
                </StackPanel>
            </Button>
        </controls:WrapPanel>

        <!-- WebView2 Control -->
        <WebView2
            Grid.Row="1"
            x:Name="GitHubDocumentationWebView2"
            Source="https://github.com/HotCakeX/Harden-Windows-Security/wiki/Introduction"
            HorizontalAlignment="Stretch"
            VerticalAlignment="Stretch"
            MinHeight="200"
            MinWidth="200"/>
    </Grid>
</Page>
