<UserControl
    x:Class="PDF_Office.Views.HomeContent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="http://prismlibrary.com/"
    xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
    d:DesignHeight="450"
    d:DesignWidth="800"
    prism:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="270" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <!--  左侧菜单栏  -->
        <StackPanel>
            <Button
                Name="BtnOpenPDF"
                Height="48"
                Margin="41,54,41,0"
                Padding="0,0,0,0"
                Command="{Binding OpenFileCommand}"
                Content="OPEN PDF" />
            <Button
                Name="BtnCreatPDF"
                Height="48"
                Margin="41,8,41,0"
                Content="" />

            <Button
                Name="BtnGuid"
                Width="216"
                Height="40"
                Margin="0,24,0,0"
                Command="{Binding ShowToolCommand}"
                CommandParameter="Guid"
                Content="Home" />
            <Button
                Name="BtnTool"
                Width="216"
                Height="40"
                Command="{Binding ShowToolCommand}"
                CommandParameter="Tools"
                Content="Tool" />
            <Button
                Name="BtnCloud"
                Width="216"
                Height="40"
                Command="{Binding ShowToolCommand}"
                CommandParameter="Cloud"
                Content="Cloud" />
        </StackPanel>
        <!--  右侧内容区域  -->
        <ContentControl Grid.Column="1" prism:RegionManager.RegionName="{Binding ToolRegionName}" />
        <cus:LoadingControl Grid.ColumnSpan="2" Visibility="{Binding IsLoading}" />
    </Grid>
</UserControl>
