<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.UIModule.ScanGraphConfig"
        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" 
      mc:Ignorable="d" 
            
        Title="ScanGraphConfig" SizeToContent="WidthAndHeight"  >
    <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:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

            <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
                <StackPanel Orientation="Vertical" Margin="5,20">
            <Grid >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strTitle}" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding Title}" Tag="Full"/>
                    </StackPanel>
                </StackPanel>
                <StackPanel Grid.Column="1" Orientation="Horizontal">
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="高级" />
                        <ToggleButton x:Name="togglebutton_adv" Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left"  />
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="5" Visibility="{Binding ElementName=togglebutton_adv, Path=IsChecked,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed}">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strCurveType}"/>
                        <ComboBox HorizontalAlignment="Left" Width="120">
                            <ComboBoxItem IsSelected="{Binding ChartType, Converter={StaticResource e2bconv}, ConverterParameter=Line }">
                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}"  FontSize="32" Text="Line"/>
                            </ComboBoxItem>
                            <ComboBoxItem IsSelected="{Binding ChartType, Converter={StaticResource e2bconv}, ConverterParameter=Column }">
                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}"  FontSize="32" Text="Column"/>
                            </ComboBoxItem>
                            <ComboBoxItem IsSelected="{Binding ChartType, Converter={StaticResource e2bconv}, ConverterParameter=Area }">
                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}"  FontSize="32" Text="Area"/>
                            </ComboBoxItem>
                        </ComboBox>
                        
                    </StackPanel>
                </StackPanel>

            </Grid>

                    <StackPanel Orientation="Horizontal">
                        <StackPanel Orientation="Vertical" Margin="5">
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strMixCnt}" />
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding Mix}" />
                            </StackPanel>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <StackPanel Orientation="Vertical" Margin="5">
                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strMarkNo}" />
                                <StackPanel Orientation="Horizontal">
                                    <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding BM}"  />
                                </StackPanel>
                            </StackPanel>
                            <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" Background="White" BorderThickness="0" VerticalAlignment="Bottom" Click="button1_Click" Margin="5">
                                <Path Data="{StaticResource Geometry_arrow-left-bold-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                            </Button>
                            <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" Background="White" BorderThickness="0" VerticalAlignment="Bottom" Click="button2_Click" Margin="5">
                                <Path Data="{StaticResource Geometry_arrow-right-bold-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                            </Button>
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal" >
                        <StackPanel Orientation="Vertical" Margin="5">
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strAutoTarget}" />
                            <ToggleButton Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left" IsChecked="{Binding IsAutoTarget}" />
                        </StackPanel>
                        <StackPanel Orientation="Vertical" Margin="5">
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strPercentShow}" />
                            <ToggleButton Style="{StaticResource ToggleButtonStyle1}" HorizontalAlignment="Left" IsChecked="{Binding IsPercent}" />
                        </StackPanel>
                <StackPanel Orientation="Horizontal" Visibility="{Binding ElementName=togglebutton_adv, Path=IsChecked,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed}">
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strAxisYMultiple}" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding YRangePercent}" />
                        </StackPanel>
                    </StackPanel>
                    <StackPanel Orientation="Vertical" Margin="5">
                        <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strAxisXInterval}" />
                        <StackPanel Orientation="Horizontal">
                            <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding DataContext.XInterval,ElementName=stackpanel_params}" />
                            <TextBlock Style="{StaticResource TextBlockStyle_FieldContent_mm}" Text="{DynamicResource strBolt}"/>
                        </StackPanel>
                    </StackPanel>
                </StackPanel>

            </StackPanel>
            <StackPanel Orientation="Horizontal" x:Name="stackpanel_params" Visibility="{Binding ElementName=togglebutton_adv, Path=IsChecked,Converter={StaticResource visbilityconv},ConverterParameter=Collapsed}">
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strDirectionIsReversed}" />
                    <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding IsReversed}" HorizontalAlignment="Left"/>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strShowLR}" />
                    <ToggleButton Name="togglebutton_lrisv" Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding LRIsVisable}" HorizontalAlignment="Left"/>
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="5" Visibility="{Binding IsChecked,Converter={StaticResource ResourceKey=visbilityconv},ConverterParameter=Collapsed, ElementName=togglebutton_lrisv}">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strLRIsReversed}" />
                    <ToggleButton Style="{StaticResource ToggleButtonStyle1}" IsChecked="{Binding LRIsReversed}" HorizontalAlignment="Left"/>
                </StackPanel>
            </StackPanel>
            <Button Style="{StaticResource ButtonStyle2}" Content="{DynamicResource strSave}" Width="Auto" Margin="5"  Click="button_save_Click"/>
                </StackPanel>
            </Grid>

</flyctrllib:WindowBigClose>
