<Window x:Class="FLY.Thick.FilmCasting.UI.Server.WdPicHistory"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:FLY.Thick.FilmCasting.UI.Server"
        mc:Ignorable="d"
        Title="WdPicHistory" Height="450" Width="800">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.Thick.FilmCasting.UI.Server;component/Themes/Styles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <local:ScanGraph x:Name="scanGraph" Margin="{StaticResource ControlMargin}"/>
        <StackPanel Margin="{StaticResource ControlMargin}" Grid.Row="1" >
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="使能"/>
                    <CheckBox IsChecked="{Binding Enable}"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="图片文件夹路径"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding RootPath}"/>
                </StackPanel>

                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="图片保存时间间隔"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding IntervalMin}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="min"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}" DataContext="{Binding PicHistory}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="当前计时"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent}" Text="{Binding CounterSec}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="s"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="图片保存天数"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding KeepDay}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="天"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}" DataContext="{Binding PicHistory}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="当前保存图片天数"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent}" Text="{Binding CurrDays}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="天"/>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal">

                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="图片宽度"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding PicWidth}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="像素"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="图片高度"/>
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding PicHeight}"/>
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="像素"/>
                    </StackPanel>
                </StackPanel>

                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="X轴间隔"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding XStep}"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="Y轴比例"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding YRangePercent}"/>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="Y轴%显示"/>
                    <CheckBox IsChecked="{Binding IsPercent}"/>
                </StackPanel>
            </StackPanel>
            <Button Style="{StaticResource Styles.Button.Square.Accent2}" HorizontalAlignment="Right" Content="确定" Command="{Binding OkCmd}" />
        </StackPanel>

    </Grid>
</Window>
