<flyctrllib:WindowBigClose x:Class="FLY.Thick.Base.UI.WdAHelper"
        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:FLY.Thick.Base.UI"
        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 Margin="5,20">
            <StackPanel Orientation="Horizontal" Margin="0,5">
                <Border Style="{StaticResource BorderStyle_paramSection}" >
                    <TextBlock Text="方程" />
                </Border>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="实际值Y"/>
                    <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding Y}" />
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeaderEditable}" Text="显示值X" />
                    <TextBox Style="{StaticResource TextBoxStyle_FieldContent}" Text="{Binding X}"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,5">
                <Button Style="{StaticResource ButtonStyle_paramSection}" Click="button_cal_Click" >
                    <TextBlock Text="计算"/>
                </Button>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldHeader}" Text="结果"/>
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldContent}" >
                        <Run Text= "Y="/>
                        <Run Text= "{Binding A, StringFormat={}{0:F3}}"/>
                        <Run Text= "X"/>
                    </TextBlock>

                </StackPanel>
            </StackPanel>

            <Button Content="应用"  Style="{StaticResource  ButtonStyle2}"  Margin="{StaticResource ControlMargin}" Width="auto" Click="button_apply_Click" />
        </StackPanel>
    </Grid>

</flyctrllib:WindowBigClose>
