MainWindow.xaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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="720" Width="820" MinWidth="900" MinHeight="720" Closing="Window_Closing" WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg">
  9. <Grid Background="#B2E0E0E0">
  10. <Grid x:Name="HeardGrid" Height="60" VerticalAlignment="Top" Background="#B20092FF">
  11. <Button x:Name="ExitBtn" HorizontalAlignment="Left" Height="60" Width="60" Click="ExitBtn_Click" Background="{x:Null}">
  12. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  13. <Image Source="/FromImage/退出.png" Width="28" Height="28" />
  14. <TextBlock Text="系统退出" FontSize="10" FontWeight="Bold" Margin="0,8,0,0" HorizontalAlignment="Center" />
  15. </StackPanel>
  16. </Button>
  17. <Button x:Name="MainPageBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="60,0,0,0" Background="{x:Null}" Click="MainPageBtn_Click">
  18. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  19. <Image Source="/FromImage/相机小.png" Width="32" Height="32" />
  20. <TextBlock Text="主界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  21. </StackPanel>
  22. </Button>
  23. <Button x:Name="SettingBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="120,0,0,0" Background="{x:Null}" Click="SettingBtn_Click">
  24. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  25. <Image Source="/FromImage/设置.png" Width="32" Height="32" />
  26. <TextBlock Text="设置界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  27. </StackPanel>
  28. </Button>
  29. <Button x:Name="PlcSettingBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="180,0,0,0" Background="{x:Null}" Click="PlcSettingBtn_Click">
  30. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  31. <Image Source="/FromImage/PLC信息管理.png" Width="32" Height="32" />
  32. <TextBlock Text="PLC设置" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  33. </StackPanel>
  34. </Button>
  35. <Button x:Name="ErrorMessageShowBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="240,0,0,0" Background="{x:Null}" Click="ErrorMessageShowBtn_Click">
  36. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  37. <Image Source="/FromImage/故障.png" Width="36" Height="36" />
  38. <TextBlock Text="故障页面" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" />
  39. </StackPanel>
  40. </Button>
  41. <Button x:Name="UserMessageBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="300,0,0,0" Background="{x:Null}" Click="UserMessageBtn_Click">
  42. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  43. <Image Source="/FromImage/用户管理.png" Width="32" Height="32" />
  44. <TextBlock Text="用户管理" FontSize="10" FontWeight="Bold" Margin="0,4,0,0" HorizontalAlignment="Center" />
  45. </StackPanel>
  46. </Button>
  47. <Button x:Name="RnIdentifyBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="360,0,0,0" Background="{x:Null}" Click="RnIdentifyBtn_Click">
  48. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  49. <Image Name="RnIdentifyBtn_Image" Source="/FromImage/运行.png" Width="32" Height="32" />
  50. <TextBlock Name="RnIdentifyBtn_Text" Text="开始运行" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  51. </StackPanel>
  52. </Button>
  53. </Grid>
  54. <Frame x:Name="ShowFrame" Margin="0,60,0,60" NavigationUIVisibility="Hidden"/>
  55. <Grid VerticalAlignment="Bottom" Height="40" Margin="0,0,0,5">
  56. <Border Grid.Column="0"
  57. Background="#B20092FF"
  58. CornerRadius="8"
  59. BorderBrush="Gray"
  60. BorderThickness="1"
  61. Margin="10,0,10,0" VerticalAlignment="Bottom" Height="40">
  62. <StackPanel Orientation="Horizontal">
  63. <Label x:Name="CPUMonitorLab" Content="{Binding CPUMonitor}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="30" Margin="30,8,0,0" Width="80" FontSize="10" FontWeight="Bold"></Label>
  64. <Label x:Name="RamMonitorLab" Content="{Binding RamMonitor}" HorizontalAlignment="Left" VerticalAlignment="Top" Height="30" Margin="20,8,0,0" Width="120" FontSize="10" FontWeight="Bold"></Label>
  65. </StackPanel>
  66. </Border>
  67. </Grid>
  68. </Grid>
  69. </Window>