<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.UIModule.FixGraphConfig"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:my="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:local="clr-namespace:ThickTcpUiInWindow.UIModule"
        Title="Window_graphfix"  mc:Ignorable="d" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" SizeToContent="WidthAndHeight">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <!--<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
            <local:IntMsConverter x:Key="intmsconv"/>
            <local:TimeLenConverter x:Key="timelenconv"/>

        </ResourceDictionary>
    </Window.Resources>
    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal">
        <Grid x:Name="grid_null"/>
        <StackPanel Orientation="Vertical" Margin="5,20">
            <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 strInterval}" />
                                <StackPanel Orientation="Horizontal">
                            <ComboBox x:Name="combox_intervalopt" Width="140" HorizontalAlignment="Left" FontSize="32" 
                                      ItemsSource="{Binding DataContext.IntervalOpt, ElementName=grid_null}" 
                                      DisplayMemberPath="Title" SelectedValuePath="Interval" 
                                      SelectedValue="{Binding Interval}"/>
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Orientation="Vertical" Margin="5">
                                <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strDataCnt}" />
                                <StackPanel Orientation="Horizontal">
                            <ComboBox x:Name="combox_datalenopt" Width="140" HorizontalAlignment="Left" FontSize="32" 
                                          ItemsSource="{Binding DataContext.DataLenOpt, ElementName=grid_null}" 
                                          SelectedValue="{Binding Len}"/>
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm_interval}" Text="|" />
                                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent_mm}" >
                                        <Run>
                                            <MultiBinding Converter="{StaticResource timelenconv}" Mode="OneWay" >
                                                <Binding Path="Interval" />
                                                <Binding Path="Len" />
                                            </MultiBinding>
                                        </Run>
                                    </TextBlock>
                                </StackPanel>
                            </StackPanel>
                        </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>

                    <Button Style="{StaticResource ButtonStyle2}" Content="{DynamicResource strSave}" Margin="5"  Width="Auto" Click="button_save_Click"/>
                </StackPanel>
            </Grid>

</flyctrllib:WindowBigClose>
