终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

DeviceControlView.xaml 4.1 KiB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <Window
  2. x:Class="BPASmartClient.Academy.View.DeviceControlView"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cs="clr-namespace:BPASmartClient.CustomResource;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmartClient.Academy.View"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:vm="clr-namespace:BPASmartClient.Academy.ViewModel" Width="400" Height="250"
  10. d:Visibility="Visible" AllowsTransparency="True"
  11. Background="{x:Null}"
  12. Topmost="True" Visibility="Collapsed" WindowStartupLocation="CenterScreen" WindowStyle="None"
  13. mc:Ignorable="d">
  14. <Window.Resources>
  15. <ResourceDictionary>
  16. <ResourceDictionary.MergedDictionaries>
  17. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/GenricStyle.xaml" />
  18. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Themes/MyStyle.xaml" />
  19. <ResourceDictionary Source="/BPASmartClient.CustomResource;component/Recdictionarys/GlobalStyle.xaml" />
  20. </ResourceDictionary.MergedDictionaries>
  21. </ResourceDictionary>
  22. </Window.Resources>
  23. <!--<UserControl.DataContext>
  24. <vm:DeviceControlViewModel />
  25. </UserControl.DataContext>-->
  26. <Border
  27. Name="br" Background="#FF0B2F5F" BorderBrush="#0CADF5" BorderThickness="0">
  28. <Grid>
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="auto" />
  31. <RowDefinition Height="auto" />
  32. <RowDefinition Height="1*" />
  33. <RowDefinition Height="1*" />
  34. <RowDefinition Height="auto" />
  35. </Grid.RowDefinitions>
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="1*" />
  38. <ColumnDefinition Width="1*" />
  39. </Grid.ColumnDefinitions>
  40. <!--#region 窗体标题-->
  41. <TextBlock
  42. Grid.Row="0" Grid.Column="0" FontSize="28" Text="阀门/电机控制" />
  43. <Button
  44. Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center"
  45. Click="Button_Click" Content="关闭窗体" FontSize="28"
  46. Style="{StaticResource ControlButtonStyle}" />
  47. <!--#endregion-->
  48. <!--#region 阀门名称-->
  49. <TextBlock
  50. Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"
  51. d:Text="反应釜旁通阀控制" FontSize="32"
  52. Text="{Binding ValveName}"
  53. TextAlignment="Center" />
  54. <!--#endregion-->
  55. <!--#region 指令状态显示-->
  56. <TextBlock
  57. Grid.Row="2" Grid.Column="0" FontSize="28" Text="当前指令状态:" />
  58. <TextBlock
  59. Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
  60. d:Text="打开" FontSize="28"
  61. Text="{Binding CommandState}" />
  62. <!--#endregion-->
  63. <!--#region 设备状态显示-->
  64. <TextBlock
  65. Grid.Row="3" Grid.Column="0" FontSize="28" Text="当前设备状态:" />
  66. <TextBlock
  67. Grid.Row="3" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center"
  68. d:Text="关闭" FontSize="28"
  69. Text="{Binding DeviceState}" />
  70. <!--#endregion-->
  71. <!--#region 按钮-->
  72. <Button
  73. Grid.Row="4"
  74. Command="{Binding OpenCommand}"
  75. Content="打开" FontSize="32"
  76. Style="{StaticResource OKImageButtonStyle}" />
  77. <Button
  78. Grid.Row="4" Grid.Column="1"
  79. Command="{Binding CloseCommand}"
  80. Content="关闭" FontSize="32"
  81. Style="{StaticResource CancelImageButtonStyle}" />
  82. <!--#endregion-->
  83. </Grid>
  84. </Border>
  85. </Window>