<UserControl x:Class="VIZ.Package.Module.ImageEdit"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:module="clr-namespace:VIZ.Package.Module" 
             mc:Ignorable="d"
             d:DesignHeight="350" d:DesignWidth="525">
    <Grid >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="3*"></ColumnDefinition>
            <ColumnDefinition Width="*"></ColumnDefinition>

        </Grid.ColumnDefinitions>

        <module:ImageDealer Panel.ZIndex="0" x:Name="ImageDealer" Margin="20" OnCutImaging="ImageDealer_OnOnCutImaging">
            
        </module:ImageDealer>

        <StackPanel Grid.Column="1">
            <Grid>

                <Grid.RowDefinitions>
                    <RowDefinition Height="150"/>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                </Grid.RowDefinitions>

                <Image Name="CutImage" Grid.Column="1" Margin="5" VerticalAlignment="Top" ></Image>

                <WrapPanel Grid.Row="1" VerticalAlignment="Center">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="50"/>
                            <ColumnDefinition Width="50"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="高度:" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock x:Name="txt_Height"  Grid.Column="1"/>
                    </Grid>

                </WrapPanel>


                <WrapPanel Grid.Row="2" VerticalAlignment="Center">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="50"/>
                            <ColumnDefinition Width="50"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Text="宽度:" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        <TextBlock x:Name="txt_With"   Grid.Column="1"/>
                    </Grid>

                </WrapPanel>

                <Button Content="截图" Grid.Row="3" Width="120" Command="{Binding Path=ImageCutCommand}" ></Button>


            </Grid>

        </StackPanel>


    </Grid>
</UserControl>
