MainWindow.xaml 4.9 KB

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