终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

76 lines
3.6 KiB

  1. <UserControl x:Class="BPASmartClient.MorkTHQ.View.Monitor"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmartClient.MorkTHQ.View"
  7. xmlns:vm="clr-namespace:BPASmartClient.MorkTHQ.ViewModel"
  8. mc:Ignorable="d"
  9. Name="监控画面"
  10. d:DesignHeight="450" d:DesignWidth="800" Unloaded="Monitor_Unloaded">
  11. <UserControl.DataContext>
  12. <vm:MonitorViewModel/>
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <ResourceDictionary >
  16. <vm:BoolToColorConvert x:Key="BoolToColorConvert"/>
  17. <Style x:Key="tx_Status" TargetType="TextBlock">
  18. <Setter Property="FontFamily" Value="/BPASmartClient.CustomResource;component/Fonts/Debug/#iconfont"/>
  19. <Setter Property="FontSize" Value="26"/>
  20. <Setter Property="Text" Value="&#xea6b;"/>
  21. <Setter Property="VerticalAlignment" Value="Center"/>
  22. <Setter Property="HorizontalAlignment" Value="Left"/>
  23. </Style>
  24. </ResourceDictionary>
  25. </UserControl.Resources>
  26. <Grid Margin="10,0">
  27. <Grid.ColumnDefinitions>
  28. </Grid.ColumnDefinitions>
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="*"/>
  31. <RowDefinition Height="*"/>
  32. <RowDefinition Height="*"/>
  33. </Grid.RowDefinitions>
  34. <GroupBox Header="传感器状态"
  35. FontSize="20" Foreground="#40e8ff"
  36. BorderThickness="0">
  37. <Grid Margin="20,0">
  38. <Grid.ColumnDefinitions>
  39. <ColumnDefinition Width="3*"/>
  40. <ColumnDefinition Width="*"/>
  41. <ColumnDefinition Width="3*"/>
  42. <ColumnDefinition Width="*"/>
  43. </Grid.ColumnDefinitions>
  44. <Grid.RowDefinitions>
  45. <RowDefinition Height="*"/>
  46. <RowDefinition Height="*"/>
  47. <RowDefinition Height="*"/>
  48. </Grid.RowDefinitions>
  49. <TextBlock Text="机器人夹爪处检测传感器"
  50. FontSize="18"
  51. VerticalAlignment="Center"/>
  52. <TextBlock Text="冰淇淋出料口传感器"
  53. Grid.Row="1"
  54. FontSize="18"
  55. VerticalAlignment="Center"/>
  56. <TextBlock Text="取餐口传感器"
  57. Grid.Row="2"
  58. FontSize="18"
  59. VerticalAlignment="Center"/>
  60. <TextBlock Grid.Row="0" Grid.Column="1"
  61. Style="{StaticResource tx_Status}"
  62. Foreground="{Binding RobotSenser,Converter={StaticResource BoolToColorConvert }}"/>
  63. <TextBlock Grid.Row="1" Grid.Column="1"
  64. Style="{StaticResource tx_Status}"
  65. Foreground="{Binding IceCreamSenser,Converter={StaticResource BoolToColorConvert }}"/>
  66. <TextBlock Grid.Row="2" Grid.Column="1"
  67. Style="{StaticResource tx_Status}"
  68. Foreground="{Binding TakeMealSenser,Converter={StaticResource BoolToColorConvert}}"/>
  69. </Grid>
  70. </GroupBox>
  71. </Grid>
  72. </UserControl>