87 lines
6.5 KiB
XML
87 lines
6.5 KiB
XML
<UserControl x:Class="MegaRobo.C00225155App.DevicesViews.LowTemperatureMagneticStirView"
|
||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:exToolkit="http://schemas.xceed.com/wpf/xaml/toolkit"
|
||
xmlns:local="clr-namespace:MegaRobo.C00225155App.DevicesViews"
|
||
mc:Ignorable="d" DataContext="{Binding LowTemperatureMagneticStirVM, Source={StaticResource vmLocator}}"
|
||
d:DesignHeight="800" d:DesignWidth="800" Height="800" Width="800">
|
||
<Border BorderBrush="Black" BorderThickness="1,0,1,1">
|
||
<Grid Background="WhiteSmoke">
|
||
<Grid.RowDefinitions>
|
||
<RowDefinition Height="45"/>
|
||
<RowDefinition Height="80"/>
|
||
<RowDefinition />
|
||
<RowDefinition/>
|
||
</Grid.RowDefinitions>
|
||
<Grid.ColumnDefinitions>
|
||
<ColumnDefinition/>
|
||
<ColumnDefinition/>
|
||
</Grid.ColumnDefinitions>
|
||
<Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Background="White" BorderBrush="#1778e9" BorderThickness="0,1,0,1">
|
||
<Label Content="低温磁力搅拌___HCM自定义通讯" Margin="10,0" FontSize="18" Foreground="Black"/>
|
||
</Border>
|
||
<StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center">
|
||
<StackPanel Orientation="Horizontal" Margin="5">
|
||
<Label Content="选择从站号:" FontSize="15" Margin="2,0,10,0"/>
|
||
<ComboBox Width="150" ItemsSource="{Binding DeviceIDList}" SelectedItem="{Binding DeviceID,Mode=TwoWay}"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
<GroupBox Grid.Row="2">
|
||
<StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Content="设置电机转速:" Width="120" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="25,10,5,10" Command="{Binding CommandControl}" CommandParameter="SetSpeed"/>
|
||
<exToolkit:IntegerUpDown Value="{Binding Speed}" Width="140" Height="32" Margin="5" Maximum="1500" Minimum="100" HorizontalAlignment="Center"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Content="设置温度:" Width="120" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="25,10,5,10" Command="{Binding CommandControl}" CommandParameter="SetTemperature"/>
|
||
<exToolkit:IntegerUpDown Value="{Binding Temperature}" Width="140" Height="32" Margin="5" Maximum="50" Minimum="-50" HorizontalAlignment="Center"/>
|
||
<Label Content="℃" VerticalAlignment="Center"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Content="设置加热温度(除霜):" Width="140" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="5,10" Command="{Binding CommandControl}" CommandParameter="SetHotTemperature"/>
|
||
<exToolkit:IntegerUpDown Value="{Binding HotTemperature}" Width="140" Height="32" Margin="5" Maximum="100" Minimum="0" HorizontalAlignment="Center"/>
|
||
<Label Content="℃" VerticalAlignment="Center"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
||
<Button Content="关闭温度" Width="140" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="20" Command="{Binding CommandControl}" CommandParameter="CloseTemperature"/>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
<GroupBox Grid.Row="2" Grid.Column="1">
|
||
<StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Content="获取电机转速:" Width="120" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="25,10,5,10" Command="{Binding CommandControl}" CommandParameter="GetSpeed"/>
|
||
<Border Width="140" Height="35" Margin="5" BorderThickness="1" BorderBrush="Gray">
|
||
<TextBlock Text="{Binding NowSpeed}" Style="{StaticResource txtBlockBaseStyle }"/>
|
||
</Border>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Content="获取当前温度:" Width="120" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="25,10,5,10" Command="{Binding CommandControl}" CommandParameter="GetTemperature"/>
|
||
<Border Width="140" Height="35" Margin="5" BorderThickness="1" BorderBrush="Gray">
|
||
<TextBlock Text="{Binding NowTemperature}" Style="{StaticResource txtBlockBaseStyle }"/>
|
||
</Border>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal">
|
||
<Button Content="获取开关盖状态:" Width="140" Height="40" FontSize="15" Foreground="Black" Style="{StaticResource btnMenu }" Margin="5,10" Command="{Binding CommandControl}" CommandParameter="GetLidState"/>
|
||
<Border Width="140" Height="35" Margin="5" BorderThickness="1" BorderBrush="Gray">
|
||
<TextBlock Text="{Binding LidState}" Style="{StaticResource txtBlockBaseStyle }"/>
|
||
</Border>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</GroupBox>
|
||
<Border Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" BorderBrush="Gray" BorderThickness="1" Margin="5">
|
||
<StackPanel>
|
||
<TextBlock Text="状态记录">
|
||
<TextBlock.Effect>
|
||
<DropShadowEffect Color="#00BFFF" BlurRadius="5" Opacity="0.5" ShadowDepth="0"/>
|
||
</TextBlock.Effect>
|
||
</TextBlock>
|
||
<ListBox VerticalAlignment="Top" ItemsSource="{Binding LogInfos}"/>
|
||
</StackPanel>
|
||
</Border>
|
||
</Grid>
|
||
</Border>
|
||
</UserControl>
|