|
- <UserControl
- x:Class="HBLConsole.Debug.Debug_MORKIC"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:HBLConsole.Debug"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:s="https://github.com/canton7/Stylet"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <UserControl.DataContext>
- <local:ViewModel_MORKIC x:Name="vmode" />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="Style.xaml" />
- <ResourceDictionary>
- <!--#region ComboBox 样式-->
- <!-- ComBoBox项选中背景色 -->
- <SolidColorBrush x:Key="ComboBoxSelectdBackground" Color="#AA3ba7f2" />
- <!-- ComBoBox项鼠标经过背景色 -->
- <SolidColorBrush x:Key="ComboBoxMouseOverBackground" Color="#553ba7f2" />
- <!-- ComBoBox项选中前景色 -->
- <SolidColorBrush x:Key="ComboBoxSelectedForeground" Color="#DDD" />
- <!-- ComBoBox项鼠标经过前景色 -->
- <SolidColorBrush x:Key="ComboBoxMouseOverForegrond" Color="#DDD" />
- <ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
- <Grid Height="25" HorizontalAlignment="Stretch">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="30" />
- </Grid.ColumnDefinitions>
- <Border
- Grid.ColumnSpan="2"
- Background="White"
- Opacity="0" />
- <TextBlock
- Grid.Column="1"
- Margin="0,0,5,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontFamily="../Fonts/#iconfont"
- FontSize="14"
- Foreground="#FF23CACA"
- Text="" />
- <!--<Path
- x:Name="Arrow"
- Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M 0 0 6 6 12 0 Z"
- Fill="#aa20FDFA"
- Stretch="None">
- <Path.Effect>
- <DropShadowEffect
- BlurRadius="10"
- Direction="90"
- Opacity="1"
- RenderingBias="Quality"
- ShadowDepth="0"
- Color="#aa20FDFA" />
- </Path.Effect>
- </Path>-->
- </Grid>
- <!--<ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter TargetName="Arrow" Property="RenderTransform">
- <Setter.Value>
- <RotateTransform Angle="180" CenterX="6" CenterY="3" />
- </Setter.Value>
- </Setter>
- <Setter TargetName="Arrow" Property="Margin" Value="0,0,0,2" />
- </Trigger>
- </ControlTemplate.Triggers>-->
- </ControlTemplate>
- <!--#region 按钮样式-->
- <Style x:Key="ButtonStyle" TargetType="Button">
- <Setter Property="Foreground" Value="#00c2f4" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Width" Value="100" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- Background="Transparent"
- BorderBrush="#00c2f4"
- BorderThickness="2"
- CornerRadius="10">
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Background" Value="#3300c2f4" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="ComboBoxStyle" TargetType="{x:Type ComboBox}">
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="ItemContainerStyle">
- <Setter.Value>
- <Style TargetType="ComboBoxItem">
- <Setter Property="Height" Value="25" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ComboBoxItem}">
- <Grid Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
- <Border x:Name="_borderbg" Background="Transparent" />
-
- <TextBlock
- x:Name="_txt"
- Margin="3,0,3,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Foreground="#DDD"
- Text="{Binding Content, RelativeSource={RelativeSource TemplatedParent}}" />
-
- <Border
- x:Name="_border"
- Background="#103153"
- Opacity="0" />
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="true">
- <Setter TargetName="_txt" Property="Foreground" Value="{StaticResource ComboBoxSelectedForeground}" />
- <Setter TargetName="_borderbg" Property="Background" Value="{StaticResource ComboBoxSelectdBackground}" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsSelected" Value="false" />
- <Condition Property="IsMouseOver" Value="true" />
- </MultiTrigger.Conditions>
- <Setter TargetName="_borderbg" Property="Background" Value="{StaticResource ComboBoxMouseOverBackground}" />
- <Setter TargetName="_txt" Property="Foreground" Value="{StaticResource ComboBoxMouseOverForegrond}" />
- </MultiTrigger>
-
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </Setter.Value>
- </Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ComboBox}">
- <Grid>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.7*" />
- <ColumnDefinition Width="0.3*" MaxWidth="30" />
- </Grid.ColumnDefinitions>
- <Border
- x:Name="_prybr"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="0" />
- <ContentPresenter
- x:Name="ContentSite"
- Margin="3,3,0,3"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding SelectionBoxItem}"
- ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
- ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
- IsHitTestVisible="False" />
-
- <!-- ToggleButton 已数据绑定到 ComboBox 本身以切换 IsDropDownOpen -->
- <ToggleButton
- x:Name="ToggleButton"
- Grid.Column="0"
- Grid.ColumnSpan="2"
- ClickMode="Press"
- Focusable="false"
- IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}"
- Template="{StaticResource ComboBoxToggleButton}" />
- <!-- 必须将 TextBox 命名为 PART_EditableTextBox,否则 ComboBox 将无法识别它 -->
- <TextBox
- x:Name="PART_EditableTextBox"
- Margin="2,0,0,0"
- VerticalAlignment="Center"
- Background="Transparent"
- BorderThickness="0"
- Focusable="True"
- IsReadOnly="{TemplateBinding IsReadOnly}"
- Visibility="Hidden" />
-
- <!-- Popup 可显示 ComboBox 中的项列表。IsOpen 已数据绑定到通过 ComboBoxToggleButton 来切换的 IsDropDownOpen -->
- <Popup
- x:Name="Popup"
- AllowsTransparency="True"
- Focusable="False"
- IsOpen="{TemplateBinding IsDropDownOpen}"
- Placement="Bottom"
- PopupAnimation="Slide">
- <Grid
- x:Name="DropDown"
- MinWidth="{TemplateBinding ActualWidth}"
- MaxHeight="150"
- SnapsToDevicePixels="True">
- <Border
- x:Name="DropDownBorder"
- BorderBrush="#3ba7f2"
- BorderThickness="0" />
- <ScrollViewer
- Margin="1"
- CanContentScroll="True"
- HorizontalScrollBarVisibility="Auto"
- SnapsToDevicePixels="True"
- VerticalScrollBarVisibility="Auto">
- <!-- StackPanel 用于显示子级,方法是将 IsItemsHost 设置为 True -->
- <!-- 一下可以设置列表背景色 -->
- <StackPanel
- Background="#103153"
- IsItemsHost="True"
- KeyboardNavigation.DirectionalNavigation="Contained" />
- </ScrollViewer>
- </Grid>
- </Popup>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEditable" Value="true">
- <Setter TargetName="PART_EditableTextBox" Property="Visibility" Value="Visible" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="_prybr" Property="BorderBrush" Value="#aa3ba7f2" />
- <!--<Setter Property="Background" Value="#553ba7f2" TargetName="_prybr"/>-->
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
- </ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
-
- <Grid>
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
-
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="300"/>
- </Grid.RowDefinitions>
-
- <!--#region 乐百机器人控制-->
- <GroupBox
- BorderBrush="#3aa7f3"
- BorderThickness="2"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- Header=" 乐百机器人控制 "
- Style="{DynamicResource GroupBoxStyle1}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <Button
- Width="130"
- Margin="10,0,10,0"
- Command="{s:Action SimIceCream}"
- Content="冰淇淋模拟"
- Style="{StaticResource ButtonStyle}" />
-
- <Button
- Width="130"
- Margin="10,0,10,0"
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SimCoffee}"
- Content="咖啡模拟"
- Style="{StaticResource ButtonStyle}" />
- </StackPanel>
- <StackPanel Grid.Row="1" Margin="0,10,0,0" Orientation="Vertical">
- <Grid HorizontalAlignment="Left">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- <ColumnDefinition Width="*"></ColumnDefinition>
- <ColumnDefinition Width="100"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock>机器人连接状态</TextBlock>
- <TextBlock Margin="10,0,0,0" Grid.Column="1" Text="{Binding RobotConnected}"></TextBlock>
-
- <TextBlock Grid.Column="2">冰淇淋机连接状态</TextBlock>
- <TextBlock Margin="10,0,0,0" Grid.Column="3" Text="{Binding IceCreamConnected}"></TextBlock>
-
- <TextBlock Grid.Column="4">咖啡机连接状态</TextBlock>
- <TextBlock Margin="10,0,0,0" Grid.Column="5" Text="{Binding CoffeeConnected}"></TextBlock>
-
- <TextBlock Grid.Row="1">测距(是否有物)</TextBlock>
- <TextBlock Grid.Row="1" Margin="10,0,0,0" Grid.Column="1" Text="{Binding HasArticle}"></TextBlock>
-
- <TextBlock Grid.Row="1" Grid.Column="2">测距(距离)</TextBlock>
- <TextBlock Grid.Row="1" Margin="10,0,0,0" Grid.Column="3" Text="{Binding ArticleDist}"></TextBlock>
- </Grid>
- </StackPanel>
- </Grid>
- </GroupBox>
- <!--#endregion-->
-
-
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <!--#region 冰淇淋机-->
- <GroupBox
- BorderBrush="#3aa7f3"
- BorderThickness="2"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- Header=" 冰淇淋控制 "
- Style="{DynamicResource GroupBoxStyle1}">
- <StackPanel Orientation="Vertical">
- <StackPanel.Resources>
- <Style TargetType="StackPanel">
- <Setter Property="Margin" Value="5"></Setter>
- </Style>
- </StackPanel.Resources>
-
- <StackPanel Orientation="Horizontal">
- <Button Content="1号口开" s:View.ActionTarget="{Binding}" Command="{s:Action OpenSE1}" Style="{StaticResource ButtonStyle}"></Button>
- <Button Content="1号口关" s:View.ActionTarget="{Binding}" Command="{s:Action CloseSE1}" Style="{StaticResource ButtonStyle}"></Button>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Button Content="2号口开" s:View.ActionTarget="{Binding}" Command="{s:Action OpenSE2}" Style="{StaticResource ButtonStyle}"></Button>
- <Button Content="2号口关" s:View.ActionTarget="{Binding}" Command="{s:Action CloseSE2}" Style="{StaticResource ButtonStyle}"></Button>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Button Content="3号口开" s:View.ActionTarget="{Binding}" Command="{s:Action OpenSE3}" Style="{StaticResource ButtonStyle}"></Button>
- <Button Content="3号口关" s:View.ActionTarget="{Binding}" Command="{s:Action CloseSE3}" Style="{StaticResource ButtonStyle}"></Button>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Button Content="转筒转动" s:View.ActionTarget="{Binding}" Command="{s:Action TurnRoll}" Style="{StaticResource ButtonStyle}"></Button>
- <Button Content="停止转筒转动" s:View.ActionTarget="{Binding}" Command="{s:Action StopTurnRoll}" Style="{StaticResource ButtonStyle}"></Button>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Button Content="完整制作流程" s:View.ActionTarget="{Binding}" Command="{s:Action MakeIceCreamBySE1}" Style="{StaticResource ButtonStyle}"></Button>
- </StackPanel>
-
- <StackPanel Orientation="Horizontal">
- <Button Content="存在物" s:View.ActionTarget="{Binding}" Command="{s:Action DoHasArticle}" Style="{StaticResource ButtonStyle}"></Button>
- <Button Content="测距" s:View.ActionTarget="{Binding}" Command="{s:Action DoArticleDist}" Style="{StaticResource ButtonStyle}"></Button>
- </StackPanel>
- <!--<Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- </Grid.ColumnDefinitions>
-
- <TextBlock Grid.Row="0" Grid.Column="0">预冷温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding YLWD}" />
- <TextBlock Grid.Row="0" Grid.Column="2">回气温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding HQWD}" />
-
- <TextBlock Grid.Row="1" Grid.Column="0">环境温度</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding HJWD}" />
- <TextBlock Grid.Row="1" Grid.Column="2">当前模式</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CurrentMode}" />
-
- <TextBlock Grid.Row="2" Grid.Column="0">电流</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Text="{Binding DL}" />
- <TextBlock Grid.Row="2" Grid.Column="2">电压</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="3"
- Text="{Binding DY}" />
-
- <TextBlock Grid.Row="3" Grid.Column="0">成型比</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Text="{Binding CXB}" />
- <TextBlock Grid.Row="3" Grid.Column="2">故障</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="3"
- Text="{Binding IceCreamFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeIceCream}"
- Content="制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetIceCreamModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>-->
- </StackPanel>
- </GroupBox>
- <!--#endregion-->
-
- <!--#region 咖啡机-->
- <GroupBox
- Grid.Column="1"
- BorderBrush="#3aa7f3"
- BorderThickness="2"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- Header=" 咖啡机控制 "
- Style="{DynamicResource GroupBoxStyle1}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="150" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0">咖啡机状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding CoffeeStatus}" />
- <TextBlock Grid.Row="0" Grid.Column="2">应用状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding AppStatus}" />
- <TextBlock Grid.Row="1" Grid.Column="0">告警信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding Warning}" />
- <TextBlock Grid.Row="1" Grid.Column="2">故障信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CaffeeFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding Coffees}"
- SelectedItem="{Binding SelectedCoffee}" Style="{DynamicResource ComboBoxStyle}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeCoffee}"
- Style="{StaticResource ButtonStyle}"
- Content="制作" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action StopMakeCoffee}"
- Style="{StaticResource ButtonStyle}"
- Content="停止制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding CoffeeCmds}"
- SelectedItem="{Binding SelectedCoffeeCmd}" Style="{DynamicResource ComboBoxStyle}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetCoffeeModel}"
- Style="{StaticResource ButtonStyle}"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>
- <!--#endregion-->
- </Grid>
-
-
- <!--<GroupBox
- Grid.Row="1"
- Grid.Column="0"
- Header="冰淇淋机">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0">预冷温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding YLWD}" />
- <TextBlock Grid.Row="0" Grid.Column="2">回气温度</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding HQWD}" />
-
- <TextBlock Grid.Row="1" Grid.Column="0">环境温度</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding HJWD}" />
- <TextBlock Grid.Row="1" Grid.Column="2">当前模式</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CurrentMode}" />
-
- <TextBlock Grid.Row="2" Grid.Column="0">电流</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="1"
- Text="{Binding DL}" />
- <TextBlock Grid.Row="2" Grid.Column="2">电压</TextBlock>
- <TextBlock
- Grid.Row="2"
- Grid.Column="3"
- Text="{Binding DY}" />
-
- <TextBlock Grid.Row="3" Grid.Column="0">成型比</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="1"
- Text="{Binding CXB}" />
- <TextBlock Grid.Row="3" Grid.Column="2">故障</TextBlock>
- <TextBlock
- Grid.Row="3"
- Grid.Column="3"
- Text="{Binding IceCreamFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeIceCream}"
- Content="制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding IceCreamModes}"
- SelectedItem="{Binding SelecteIceCreamdMode}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetIceCreamModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </GroupBox>-->
- <!--<GroupBox
- Grid.Row="1"
- Grid.Column="1"
- Header="咖啡机">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.Resources>
- <Style TargetType="TextBlock">
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="100" />
- <ColumnDefinition Width="120" />
- <ColumnDefinition Width="150" />
- </Grid.ColumnDefinitions>
- <TextBlock Grid.Row="0" Grid.Column="0">咖啡机状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="1"
- Text="{Binding CoffeeStatus}" />
- <TextBlock Grid.Row="0" Grid.Column="2">应用状态</TextBlock>
- <TextBlock
- Grid.Row="0"
- Grid.Column="3"
- Text="{Binding AppStatus}" />
- <TextBlock Grid.Row="1" Grid.Column="0">告警信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="1"
- Text="{Binding Warning}" />
- <TextBlock Grid.Row="1" Grid.Column="2">故障信息</TextBlock>
- <TextBlock
- Grid.Row="1"
- Grid.Column="3"
- Text="{Binding CaffeeFault}" />
- </Grid>
- <StackPanel Grid.Row="1" Orientation="Vertical">
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>饮品</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding Coffees}"
- SelectedItem="{Binding SelectedCoffee}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action MakeCoffee}"
- Content="制作" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action StopMakeCoffee}"
- Content="停止制作" />
- </StackPanel>
- <StackPanel Margin="0,10,0,0" Orientation="Horizontal">
- <TextBlock>模式</TextBlock>
- <ComboBox
- Width="100"
- ItemsSource="{Binding CoffeeCmds}"
- SelectedItem="{Binding SelectedCoffeeCmd}" />
- <Button
- s:View.ActionTarget="{Binding}"
- Command="{s:Action SetCoffeeModel}"
- Content="设置" />
- </StackPanel>
- </StackPanel>
- </Grid>
-
- </GroupBox>-->
- </Grid>
- </UserControl>
|