1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <Window x:Class="CCDCountWpf.MainWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:CCDCountWpf"
- mc:Ignorable="d"
- Title="MainWindow" Height="720" Width="820" MinWidth="900" MinHeight="720" Closing="Window_Closing" WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" Loaded="Window_Loaded">
- <Grid Background="#B2E0E0E0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="17*"/>
- <ColumnDefinition Width="8*"/>
- </Grid.ColumnDefinitions>
- <Grid VerticalAlignment="Top" Height="60" Background="#FF1200D1" Grid.ColumnSpan="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="60"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="60"/>
- <ColumnDefinition Width="60"/>
- </Grid.ColumnDefinitions>
- <Button x:Name="MenuBtn" Grid.Column="0" HorizontalAlignment="Left" Height="60" Width="60" Click="MenuBtn_Click" Background="{x:Null}">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/菜单_白.png" Width="34" Height="34" />
- <TextBlock Text="菜单" FontSize="10" FontWeight="Bold" Margin="0,2,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <StackPanel Grid.Column="1" x:Name="HeardPanel" Orientation="Horizontal">
- <Button x:Name="ExitBtn" HorizontalAlignment="Left" Height="60" Width="60" Click="ExitBtn_Click" Background="{x:Null}">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/退出_白.png" Width="28" Height="28" />
- <TextBlock Text="系统退出" FontSize="10" FontWeight="Bold" Margin="0,8,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="MainPageBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="MainPageBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/相机小_白.png" Width="32" Height="32" />
- <TextBlock Text="主界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="HistoryDataBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="HistoryDataBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/数据_白.png" Width="32" Height="32" />
- <TextBlock Text="历史数据" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="SettingBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="SettingBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/设置_白.png" Width="32" Height="32" />
- <TextBlock Text="设置界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="PlcSettingBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="PlcSettingBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/PLC信息管理_白.png" Width="32" Height="32" />
- <TextBlock Text="PLC设置" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="ErrorMessageShowBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="ErrorMessageShowBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/故障_白.png" Width="36" Height="36" />
- <TextBlock Text="故障页面" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="UserMessageBtn" HorizontalAlignment="Left" Height="60" Width="60" Background="{x:Null}" Click="UserMessageBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/用户管理_白.png" Width="32" Height="32" />
- <TextBlock Text="用户管理" FontSize="10" FontWeight="Bold" Margin="0,4,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- </StackPanel>
- <Button Grid.Column="2" x:Name="KeyBoardBtn" Height="60" Background="{x:Null}" Click="KeyBoardBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/键盘_白.png" Width="40" Height="40" />
- <TextBlock Text="键盘" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Image Grid.Column="3" x:Name="LogoImage" Source="/FromImage/mmexport1752891278116.jpg" Margin="0,0,0,0" Height="60" Width="60" HorizontalAlignment="Right" />
- </Grid>
- <Frame x:Name="ShowFrame" Margin="0,60,0,55" NavigationUIVisibility="Hidden" Grid.ColumnSpan="2"/>
- <Grid VerticalAlignment="Bottom" Height="40" Margin="0,0,0,5" Grid.ColumnSpan="2">
- <Border Grid.Column="0"
- Background="#FF1200D1"
- CornerRadius="8"
- BorderBrush="Gray"
- BorderThickness="1"
- Margin="10,0,10,0" VerticalAlignment="Bottom" Height="40">
- <StackPanel Orientation="Horizontal">
- <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>
- <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>
- </StackPanel>
- </Border>
- <Label x:Name="ErrMessageLab" Content="{Binding ShowErrMessage}" HorizontalAlignment="Right" Foreground="Red" Width="400" Height="30" Margin="0,0,30,0" />
- </Grid>
- </Grid>
- </Window>
|