<UserControl x:Class="PDF_Office.Views.EditTools.HeaderFooter.HeaderFooterContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:prism="http://prismlibrary.com/"             
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:headerfooter="clr-namespace:PDF_Office.ViewModels.EditTools.HeaderFooter" d:DataContext="{d:DesignInstance Type=headerfooter:HeaderFooterContentViewModel}"
             mc:Ignorable="d"
             prism:ViewModelLocator.AutoWireViewModel="True"
             d:DesignHeight="760"
             d:DesignWidth="1280">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="40"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Background="#FFFFFF">
            <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
                <WrapPanel HorizontalAlignment="Center" Height="40">
                    <Button Style="{StaticResource InsideBarBtnStyle }">

                        <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
                            <StackPanel Margin="0,0,8,0">
                                <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
                            </StackPanel >
                            <TextBlock Text="添加页眉页脚" VerticalAlignment="Center"></TextBlock>
                        </StackPanel>
                    </Button>
                    <Button Style="{StaticResource InsideBarBtnStyle }" >

                        <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
                            <StackPanel Margin="0,0,8,0">
                                <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
                            </StackPanel >
                            <TextBlock Text="移除" VerticalAlignment="Center"></TextBlock>
                        </StackPanel>
                    </Button>

                    <Label Height="10" Width="1" Background="LightGray"></Label>

                    <Button Style="{StaticResource InsideBarBtnStyle }" >
                        <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
                            <StackPanel Margin="0,0,8,0">
                                <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
                            </StackPanel >
                            <TextBlock Text="批量" VerticalAlignment="Center"></TextBlock>
                        </StackPanel>
                    </Button>
                </WrapPanel>
            </Border>
            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                <Button Content="应用" Height="24" Width="44" Command="{Binding ConfirmEditToolCommand}"></Button>
                <Button Content="关闭" Height="24" Width="44" Margin="16,0,16,0" Command="{Binding CloseEditToolCommand}"></Button>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="260"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid Grid.Column="0" Background="#E7E9EC" >
                <ContentControl prism:RegionManager.RegionName="{Binding HeaderFooterDocumentRegionName}" Visibility="{Binding HeaderFooterDocumentVisible}"></ContentControl>


            </Grid>

            <Grid Grid.Column="1" Background="#F3F3F3">
                <ContentControl prism:RegionManager.RegionName="{Binding HeaderFooterSettingsRegionName}" Visibility="{Binding HeaderFooterSettingsVisible}"></ContentControl>
            </Grid>
        </Grid>
    </Grid>
</UserControl>