| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <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"
- Stylus.IsPressAndHoldEnabled="False"
- Stylus.IsFlicksEnabled="False"
- Title="MainWindow" Height="900" Width="1500" MinWidth="1000" MinHeight="720" Closing="Window_Closing" WindowStartupLocation="CenterScreen" Icon="/FromImage/mmexport1752891278116.jpg" Loaded="Window_Loaded"
- RenderOptions.BitmapScalingMode="LowQuality" RenderOptions.EdgeMode="Unspecified" TextOptions.TextFormattingMode="Display" TextOptions.TextRenderingMode="Auto">
- <Grid Style="{StaticResource MianBackGround}">
- <Grid VerticalAlignment="Top" Height="80" Background="#FF2980B9" Grid.ColumnSpan="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="80"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="80"/>
- <ColumnDefinition Width="80"/>
- <ColumnDefinition Width="80"/>
- </Grid.ColumnDefinitions>
- <Button x:Name="MenuBtn" Grid.Column="0" Click="MenuBtn_Click" Background="{x:Null}">
- <StackPanel Orientation="Vertical" VerticalAlignment="Top">
- <Image Source="/FromImage/菜单_白.png" Width="45" Height="45" />
- <TextBlock Text="{DynamicResource menu}" 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="MainPageBtn" Width="80" Background="{x:Null}" Click="MainPageBtn_Click" TouchDown="MainPageBtn_TouchDown">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/审计信息审计_白.png" Width="40" Height="40" VerticalAlignment="Top" />
- <TextBlock Text="{DynamicResource ProductionInterface}" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- <Button x:Name="HistoryDataBtn" Width="80" Background="{x:Null}" Click="HistoryDataBtn_Click" TouchDown="HistoryDataBtn_TouchDown">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/数据_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource HistoricalData}" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- <Button x:Name="SettingBtn" Width="80" Background="{x:Null}" Click="SettingBtn_Click" TouchDown="SettingBtn_TouchDown">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/相机小_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource CameraSettings}" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- <Button x:Name="PlcSettingBtn" Width="80" Background="{x:Null}" Click="PlcSettingBtn_Click" TouchDown="PlcSettingBtn_TouchDown">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/PLC信息管理_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource ParameterSettings}" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- <!--<Button x:Name="PlcOperationBtn" Width="80" Background="{x:Null}" Click="PlcOperationBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/操作_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource OperationTest}" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" Padding="0,5,0,0" TextWrapping="Wrap" />
- </StackPanel>
- </Button>-->
- <Button x:Name="ErrorMessageShowBtn" Width="80" Background="{x:Null}" Click="ErrorMessageShowBtn_Click" TouchDown="ErrorMessageShowBtn_TouchDown">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/故障_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource ErrorPage}" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button x:Name="AuditTrailShowBtn" Width="80" Background="{x:Null}" Click="AuditTrailShowBtn_Click" TouchDown="AuditTrailShowBtn_TouchDown">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/审计信息审计_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource AuditTrail}" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- <Button x:Name="UserMessageBtn" Width="80" Background="{x:Null}" Click="UserMessageBtn_Click" TouchDown="UserMessageBtn_TouchDown">
- <StackPanel Orientation="Vertical">
- <Image Source="/FromImage/用户管理_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource UserManagement}" FontSize="10" FontWeight="Bold" Margin="0,4,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- <Button x:Name="ExitBtn" Width="80" Click="ExitBtn_Click" Background="{x:Null}">
- <StackPanel Orientation="Vertical" VerticalAlignment="Top" HorizontalAlignment="Left">
- <Image Source="/FromImage/退出_白.png" Width="38" Height="38" VerticalAlignment="Top" />
- <TextBlock Text="{DynamicResource SystemExit}" FontSize="10" FontWeight="Bold" Margin="0,8,0,0" HorizontalAlignment="Center" Foreground="White" TextWrapping="Wrap" />
- </StackPanel>
- </Button>
- </StackPanel>
- <Button Grid.Column="2" x:Name="SwitchLanguageBtn" Background="{x:Null}" Click="SwitchLanguageBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/语言_白.png" Width="35" Height="35" Margin="0,2,0,0" />
- <TextBlock Text="{DynamicResource SwitchLanguageText}" FontSize="10" FontWeight="Bold" Margin="0,3,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Button Grid.Column="3" x:Name="KeyBoardBtn" Background="{x:Null}" Click="KeyBoardBtn_Click">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
- <Image Source="/FromImage/键盘_白.png" Width="40" Height="40" />
- <TextBlock Text="{DynamicResource Keyboard}" FontSize="10" FontWeight="Bold" Margin="0,0,0,0" HorizontalAlignment="Center" Foreground="White" />
- </StackPanel>
- </Button>
- <Image Grid.Column="4" x:Name="LogoImage" Source="/FromImage/mmexport1752891278116.jpg" Margin="0,0,0,0" Width="80" HorizontalAlignment="Right" />
- </Grid>
- <Frame x:Name="ShowFrame" Margin="0,80,0,55" NavigationUIVisibility="Hidden" Grid.ColumnSpan="2"/>
- <Grid VerticalAlignment="Bottom" Height="40" Margin="0,0,0,5" Grid.ColumnSpan="2">
- <Border
- Background="#FF2980B9"
- 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>
- </Grid>
- </Grid>
- </Window>
|