<flyctrllib:WindowBigClose x:Class="FLY.Thick.FilmCasting.UI.UiModule.WdGiantMixScanGraph2Config"
        xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
      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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
                           mc:Ignorable="d" 
            xmlns:uiModule="clr-namespace:FLY.Thick.FilmCasting.UI.UiModule"
        Title="ScanGraphConfig" SizeToContent="WidthAndHeight" d:DataContext="{d:DesignInstance uiModule:GiantMixScanGraph2ItemParam}" MinHeight="450" MinWidth="450" 
                           >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/FLY.Thick.FilmCasting.UI;component/Themes/Styles.xaml"/>

            </ResourceDictionary.MergedDictionaries>

        </ResourceDictionary>
    </Window.Resources>

    <StackPanel Margin="{StaticResource ControlMargin}" >
        <Grid Height="20" x:Name="grid_scanGraphVm"/>
        <Grid Height="20" x:Name="grid_graphParam"/>
        <StackPanel>
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader}" Text="统计开始ID" />
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Style="{StaticResource Styles.Text.FieldContent.Unit}" Text="{Binding FromId}"  />
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <Button Style="{StaticResource Styles.Button.Icon.Rectangle}" Click="btnRemoveFromTimeClick">
                        <iconPacks:PackIconMaterial Kind="Redo" />
                    </Button>
                    <TextBlock Text="恢复数据"/>
                </StackPanel>

                <StackPanel Margin="{StaticResource ControlMargin}">
                    <Button Style="{StaticResource Styles.Button.Icon.Rectangle}" Background="Red" Click="btnMarkFromTimeClick">
                        <iconPacks:PackIconMaterial Kind="Close" />
                    </Button>
                    <TextBlock Text="删除数据"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" >
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="混合数" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding Mix}"  />
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="Y轴倍数" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource Styles.Text.FieldContent.Input.Card}" Text="{Binding YRangePercent}" />
                    </StackPanel>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="%显示" />
                    <StackPanel Orientation="Horizontal">
                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding IsPercent}"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}" >
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="自动目标值" />
                    <StackPanel Orientation="Horizontal">
                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding IsAutoTarget}"/>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal">
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="曲线模式" />
                    <StackPanel Orientation="Horizontal">
                        <ToggleButton Style="{StaticResource Styles.ToggleButton.YESNO}" IsChecked="{Binding IsLineMode}"/>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
            <Button Style="{StaticResource Styles.Button.Apply}" Click="btnOkClick"/>
        </StackPanel>
    </StackPanel>

</flyctrllib:WindowBigClose>
