<UserControl x:Class="PDF_Master.Views.EditTools.Watermark.WatermarkTemplateListBaseContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:prism="http://prismlibrary.com/"             
             prism:ViewModelLocator.AutoWireViewModel="True"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             mc:Ignorable="d"
             d:DesignHeight="720"
             d:DesignWidth="260">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="48"/>
            <RowDefinition Height="48"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <TextBlock Width="32" Height="24" Text="水印" FontSize="16" Margin="16,0,16,0" HorizontalAlignment="Left"></TextBlock>
            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" >
                <!--<Button Height="20" Width="20"></Button>-->
                <Button Height="22"  Width="22" Margin="16,0,6,0" Command="{Binding EnterCreateCommand}" BorderThickness="0" Background="Transparent">
                    <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
                        <Ellipse Width="20" Height="20"  Stroke="black" StrokeThickness="2"/>
                        <Path Data="M6 10H14M10 6V14" Stroke="black" StrokeThickness="2" StrokeStartLineCap="Round" StrokeLineJoin="Round"/>
                    </Grid>
                </Button>
            </StackPanel>
        </Grid>
        <Grid Grid.Row="1" Margin="16,0,16,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" x:Name="WatermarkTemplateListTextContent"  Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=WatermarkTemplateListTextContent}">
                <StackPanel Orientation="Vertical"  >
                    <TextBlock Text="文本" FontSize="18"></TextBlock>
                </StackPanel>

            </Button>
            <Button Grid.Column="1" x:Name="WatermarkTemplateListFileContent"  Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=WatermarkTemplateListFileContent}">
                <StackPanel Orientation="Vertical"  >
                    <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
                </StackPanel>
            </Button>
        </Grid>
        <Grid Grid.Row="2">
            <ContentControl prism:RegionManager.RegionName="{Binding WatermarkTemplateListRegionName}" Visibility="{Binding WatermarkTemplateListVisible}"></ContentControl>
        </Grid>
    </Grid>
</UserControl>