<Window x:Class="FLYAD7_Simulation_Wpf.WindowBlowing"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
      
        Title="吹膜模拟" Height="595" Width="507" Loaded="Window_Loaded">
    <Grid>
        
        <TextBox Height="23" HorizontalAlignment="Left" Margin="12,41,0,0" Name="textBox1" VerticalAlignment="Top" Width="120" Text="{Binding FilmVelocity, StringFormat={}{0:F1}}"/>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,12,0,0" Name="textBlock1" Text="线速度(m/min)" VerticalAlignment="Top" FontWeight="Bold" FontSize="18" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="166,12,0,0" Name="textBlock2" Text="旋转速度(min/R)" VerticalAlignment="Top" FontSize="18" FontWeight="Bold" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="166,41,0,0" Name="textBox2" VerticalAlignment="Top" Width="120" Text="{Binding AngleVelocity, StringFormat={}{0:F1}}"/>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="13,70,0,0" Name="textBlock3" Text="均值(um)" VerticalAlignment="Top" FontSize="18" FontWeight="Bold" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="12,99,0,0" Name="textBox3" VerticalAlignment="Top" Width="120" Text="{Binding Avg}" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="95,163,0,0" Name="slider1" VerticalAlignment="Top" Width="383" Maximum="999" Minimum="1" Value="{Binding TestPos}"/>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,137,0,0" Name="textBlock4" Text="厚度变化" VerticalAlignment="Top" FontSize="18" FontWeight="Bold" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="13,163,0,0" Name="textBlock5" VerticalAlignment="Top" FontWeight="Bold" >
            <TextBlock.Inlines>
                <Run Text="位置:"/>
                <Run Text="{Binding TestPos}"/>
            </TextBlock.Inlines>
        </TextBlock>
        <Slider Height="23" HorizontalAlignment="Left" Margin="95,192,0,0" Name="slider2" VerticalAlignment="Top" Width="383" Value="{Binding TestHeat}" Minimum="0" Maximum="100"/>
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="13,192,0,0" Name="textBlock6" VerticalAlignment="Top" FontWeight="Bold" >
            <TextBlock.Inlines>
                <Run Text="加热功率:"/>
                <Run Text="{Binding TestHeat}"/>
            </TextBlock.Inlines>
        </TextBlock>

        <TextBlock FontSize="18" FontWeight="Bold" Height="23" HorizontalAlignment="Left" Margin="166,70,0,0" Name="textBlock9" Text="当前角度(°）" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="166,99,0,0" Name="textBox4" VerticalAlignment="Top" Width="120" Text="{Binding CurrAngle,StringFormat={}{0:F1}}"/>
        <Button Content="应用" Height="23" HorizontalAlignment="Left" Margin="398,139,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <WindowsFormsHost Height="159" HorizontalAlignment="Left" Margin="12,221,0,0" Name="windowsFormsHost1" VerticalAlignment="Top" Width="466" >
            <Chr:Chart x:Name="chart1" />
        </WindowsFormsHost>
        <WindowsFormsHost Height="159" HorizontalAlignment="Left" Margin="12,386,0,0" VerticalAlignment="Top" Width="466" >
            <Chr:Chart x:Name="chart2" />
        </WindowsFormsHost>
        <GroupBox Header="电柜" Height="108" HorizontalAlignment="Left" Margin="328,12,0,0" Name="groupBox1" VerticalAlignment="Top" Width="145">
            <StackPanel Orientation="Vertical">
                <CheckBox Content="电流计" Height="16" Margin="5" IsChecked="{Binding HasElectricCurrent}" IsEnabled="False"/>
                <CheckBox Content="风机开" Height="16" Margin="5" IsChecked="{Binding HasFan}" />
                <CheckBox x:Name="checkbox_isShieldI9" Content="屏蔽I9" Height="16" Margin="5" IsChecked="{Binding IsShieldI9}" />
            </StackPanel>
        </GroupBox>
    </Grid>
</Window>
