<Window x:Class="ConeCalorimeter.Views.HeatFluxCoefficientWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="热流计系数"
        Width="420"
        Height="250"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner"
        FontFamily="Microsoft YaHei UI">
    <Border Background="#F4F6F5"
            Padding="22">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>

            <TextBlock Text="热流计系数"
                       FontSize="24"
                       FontWeight="SemiBold"
                       Foreground="#172320" />

            <Grid Grid.Row="1"
                  Margin="0,22,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="112" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <TextBlock Text="系数值："
                           VerticalAlignment="Center"
                           FontSize="18"
                           Foreground="#172320" />
                <TextBox x:Name="CoefficientTextBox"
                         Grid.Column="1"
                         Height="42"
                         Padding="10,4"
                         VerticalContentAlignment="Center"
                         FontSize="20"
                         HorizontalContentAlignment="Right" />
            </Grid>

            <TextBlock x:Name="StatusTextBlock"
                       Grid.Row="2"
                       Margin="0,14,0,0"
                       FontSize="14"
                       Foreground="#4F5B56"
                       TextWrapping="Wrap" />

            <StackPanel Grid.Row="3"
                        Orientation="Horizontal"
                        HorizontalAlignment="Right">
                <Button Content="读取"
                        Width="88"
                        Margin="0,0,10,0"
                        Style="{StaticResource InstrumentButtonStyle}"
                        Click="ReadButton_Click" />
                <Button Content="写入"
                        Width="88"
                        Margin="0,0,10,0"
                        Style="{StaticResource InstrumentPrimaryButtonStyle}"
                        Click="WriteButton_Click" />
                <Button Content="关闭"
                        Width="88"
                        Style="{StaticResource InstrumentButtonStyle}"
                        Click="CloseButton_Click" />
            </StackPanel>
        </Grid>
    </Border>
</Window>
