<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.Window_AHelper"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
        xmlns:local="clr-namespace:ThickTcpUiInWindow"
        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.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
        <StackPanel Orientation="Vertical" Margin="5,20">
            <StackPanel Orientation="Horizontal" Margin="0,5">
                <Border Width="150" Background="{StaticResource Color_theme_activity}" Margin="0,5,5,5" >
                    <TextBlock Style="{StaticResource TextBlockStyle_ItemHeader}" Text="{DynamicResource strFormula}" />
                </Border>
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" >
                        <Run Text="{DynamicResource strActValue}"/>
                        <Run Text="Y"/>
                    </TextBlock>
                    <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding Y1}" />
                </StackPanel>
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" >
                        <Run Text="{DynamicResource strShowValue}"/>
                        <Run Text="X"/>
                    </TextBlock>
                    <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding X1}"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,5">
                <Button Style="{StaticResource ResourceKey=ButtonStyle3}" Width="150" Margin="0,5,5,5" Click="button_cal_Click" >
                    <TextBlock Style="{StaticResource TextBlockStyle_ItemHeader}" Text="{DynamicResource strCalculate}"/>
                </Button>
                <StackPanel Orientation="Vertical" Margin="5">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeader}" Text="{DynamicResource strResult}"/>
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldContent}" >
                        <Run Text= "Y="/>
                        <Run Text= "{Binding A, StringFormat={}{0:F3}}"/>
                        <Run Text= "X"/>
                    </TextBlock>

                </StackPanel>
            </StackPanel>

            <Button Content="{DynamicResource strApply}"  Style="{StaticResource  ButtonStyle2}"  Margin="5" Width="auto" Click="button_apply_Click" />
        </StackPanel>
    </Grid>

</flyctrllib:WindowBigClose>
