MainWindow.xaml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <Window x:Class="CCDCountWpf.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:CCDCountWpf"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="900" Width="1500" MinWidth="1000" MinHeight="720" Closing="Window_Closing" WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" Loaded="Window_Loaded"
  9. RenderOptions.BitmapScalingMode="LowQuality" RenderOptions.EdgeMode="Unspecified" TextOptions.TextFormattingMode="Display" TextOptions.TextRenderingMode="Auto">
  10. <Grid Background="#B2E0E0E0">
  11. <Grid VerticalAlignment="Top" Height="60" Background="#FF1200D1" Grid.ColumnSpan="2">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="60"/>
  14. <ColumnDefinition Width="*"/>
  15. <ColumnDefinition Width="60"/>
  16. <ColumnDefinition Width="60"/>
  17. </Grid.ColumnDefinitions>
  18. <Button x:Name="MenuBtn" Grid.Column="0" HorizontalAlignment="Left" Height="60" Width="60" Click="MenuBtn_Click" Background="{x:Null}">
  19. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  20. <Image Source="/FromImage/菜单_白.png" Width="34" Height="34" />
  21. <TextBlock Text="菜单" FontSize="10" FontWeight="Bold" Margin="0,2,0,0" HorizontalAlignment="Center" Foreground="White" />
  22. </StackPanel>
  23. </Button>
  24. <StackPanel Grid.Column="1" x:Name="HeardPanel" Orientation="Horizontal">
  25. <Button x:Name="ExitBtn" HorizontalAlignment="Left" Height="60" Width="60" Click="ExitBtn_Click" Background="{x:Null}">
  26. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  27. <Image Source="/FromImage/退出_白.png" Width="28" Height="28" />
  28. <TextBlock Text="系统退出" FontSize="10" FontWeight="Bold" Margin="0,8,0,0" HorizontalAlignment="Center" Foreground="White" />
  29. </StackPanel>
  30. </Button>
  31. <Button x:Name="MainPageBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="MainPageBtn_Click">
  32. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  33. <Image Source="/FromImage/相机小_白.png" Width="32" Height="32" />
  34. <TextBlock Text="主界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
  35. </StackPanel>
  36. </Button>
  37. <Button x:Name="HistoryDataBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="HistoryDataBtn_Click">
  38. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  39. <Image Source="/FromImage/数据_白.png" Width="32" Height="32" />
  40. <TextBlock Text="历史数据" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
  41. </StackPanel>
  42. </Button>
  43. <Button x:Name="SettingBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="SettingBtn_Click">
  44. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  45. <Image Source="/FromImage/设置_白.png" Width="32" Height="32" />
  46. <TextBlock Text="相机设置" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
  47. </StackPanel>
  48. </Button>
  49. <Button x:Name="PlcSettingBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="PlcSettingBtn_Click">
  50. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  51. <Image Source="/FromImage/PLC信息管理_白.png" Width="32" Height="32" />
  52. <TextBlock Text="参数设置" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
  53. </StackPanel>
  54. </Button>
  55. <Button x:Name="PlcOperationBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="PlcOperationBtn_Click">
  56. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  57. <Image Source="/FromImage/操作_白.png" Width="28" Height="34" />
  58. <TextBlock Text="操作测试" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
  59. </StackPanel>
  60. </Button>
  61. <Button x:Name="ErrorMessageShowBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="ErrorMessageShowBtn_Click">
  62. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  63. <Image Source="/FromImage/故障_白.png" Width="36" Height="36" />
  64. <TextBlock Text="故障页面" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
  65. </StackPanel>
  66. </Button>
  67. <Button x:Name="AuditTrailShowBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="AuditTrailShowBtn_Click">
  68. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  69. <Image Source="/FromImage/审计信息审计_白.png" Width="36" Height="36" />
  70. <TextBlock Text="审计追踪" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
  71. </StackPanel>
  72. </Button>
  73. <Button x:Name="UserMessageBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="UserMessageBtn_Click">
  74. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  75. <Image Source="/FromImage/用户管理_白.png" Width="32" Height="32" />
  76. <TextBlock Text="用户管理" FontSize="10" FontWeight="Bold" Margin="0,4,0,0" HorizontalAlignment="Center" Foreground="White" />
  77. </StackPanel>
  78. </Button>
  79. </StackPanel>
  80. <Button Grid.Column="2" x:Name="KeyBoardBtn" Height="60" Background="{x:Null}" Click="KeyBoardBtn_Click">
  81. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  82. <Image Source="/FromImage/键盘_白.png" Width="40" Height="40" />
  83. <TextBlock Text="键盘" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
  84. </StackPanel>
  85. </Button>
  86. <Image Grid.Column="3" x:Name="LogoImage" Source="/FromImage/mmexport1752891278116.jpg" Margin="0,0,0,0" Height="60" Width="60" HorizontalAlignment="Right" />
  87. </Grid>
  88. <Frame x:Name="ShowFrame" Margin="0,60,0,55" NavigationUIVisibility="Hidden" Grid.ColumnSpan="2"/>
  89. <Grid VerticalAlignment="Bottom" Height="40" Margin="0,0,0,5" Grid.ColumnSpan="2">
  90. <Border
  91. Background="#FF1200D1"
  92. CornerRadius="8"
  93. BorderBrush="Gray"
  94. BorderThickness="1"
  95. Margin="10,0,10,0" VerticalAlignment="Bottom" Height="40">
  96. <StackPanel Orientation="Horizontal">
  97. <Label x:Name="CPUMonitorLab" Content="{Binding CPUMonitor}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="30" Margin="30,8,0,0" Width="80" FontSize="10" FontWeight="Bold" Foreground="White"></Label>
  98. <Label x:Name="RamMonitorLab" Content="{Binding RamMonitor}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="30" Margin="20,8,0,0" Width="120" FontSize="10" FontWeight="Bold" Foreground="White"></Label>
  99. </StackPanel>
  100. </Border>
  101. <Label x:Name="ErrMessageLab" Content="{Binding ShowErrMessage}" HorizontalAlignment="Right" Foreground="Red" Width="400" Height="30" Margin="0,0,30,0" />
  102. </Grid>
  103. </Grid>
  104. </Window>