<flyctrllib:WindowBigClose x:Class="FLY.Thick.Base.UI.WdAbHelper"
        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>
            <local:WdAbHelperVm x:Key="viewmodel"/>
        </ResourceDictionary>
    </Window.Resources>

    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" d:DataContext="{StaticResource viewmodel}">
        <StackPanel Margin="5,20">
            <StackPanel Orientation="Horizontal" Margin="0,5">
                <Border Style="{StaticResource Styles.ParamSection.Border}" >
                    <TextBlock Text="方程1"/>
                </Border>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="实际值Y1" />
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding Y1}" />
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}"  Text="显示值X1" />
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding X1}"/>
                </StackPanel>
            </StackPanel>
            <StackPanel Orientation="Horizontal" Margin="0,5">
                <Border Style="{StaticResource Styles.ParamSection.Border}" >
                    <TextBlock Text="方程2"/>
                </Border>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}" Text="实际值Y2" />
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding Y2}" />
                </StackPanel>
                <StackPanel Margin="{StaticResource ControlMargin}">
                    <TextBlock Style="{StaticResource Styles.Text.FieldHeader.Editable}"  Text="显示值X2"/>
                    <TextBox Style="{StaticResource Styles.Text.FieldContent.Input}" Text="{Binding X2}"/>
                </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 Styles.Text.FieldHeader}" Text="结果"/>
                    <TextBlock Style="{StaticResource TextBlockStyle_FieldContent}" >
                        <Run Text= "Y="/>
                        <Run Text= "{Binding A, StringFormat={}{0:F3}}"/>
                        <Run Text= "X+"/>
                        <Run Text= "{Binding B, StringFormat={}{0:F2}}"/>
                    </TextBlock>

                </StackPanel>
            </StackPanel>

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

</flyctrllib:WindowBigClose>
