<flyctrllib:WindowBigClose x:Class="FLY.Thick.FilmCasting.UI.UiModule.WdTempScanGraphConfig"
        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="TempScanGraphConfig" SizeToContent="WidthAndHeight" d:DataContext="{d:DesignInstance uiModule:ScanGraphItemParam}" 
                           >
    <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>

    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" Background="WhiteSmoke">
        <StackPanel Margin="5,20">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
            </Grid>

            <StackPanel Orientation="Horizontal" >


                <StackPanel Orientation="Horizontal" Visibility="{Binding ElementName=togglebutton_adv, Path=IsChecked,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed}">
                    <StackPanel Margin="5">
                        <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="Y轴倍数" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding YRangePercent}" />
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Margin="5">
                        <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="%显示" />
                        <StackPanel Orientation="Horizontal">
                            <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsPercent}"/>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Margin="5" >
                        <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="自动目标值" />
                        <StackPanel Orientation="Horizontal">
                            <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsAutoTarget}"/>
                        </StackPanel>
                    </StackPanel>
                </StackPanel>

            </StackPanel>
            <Button Style="{StaticResource ButtonStyle_apply}" Click="btnOkClick"/>
        </StackPanel>
    </Grid>

    </flyctrllib:WindowBigClose>
