| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <Page x:Class="CCDCountWpf.WpfPage.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:CCDCountWpf.WpfPage"
- mc:Ignorable="d"
- Title="MainPage" Height="503" Width="876" Loaded="Page_Loaded">
- <Grid>
- <Image x:Name="ShowBox" Height="160" VerticalAlignment="Top" OpacityMask="Black" />
- <Grid Margin="0,160,0,60">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border Grid.Column="0"
- Background="#7F808080"
- CornerRadius="8"
- BorderBrush="Gray"
- BorderThickness="1"
- Margin="15,10,15,0" Height="160" VerticalAlignment="Top">
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Vertical">
- <Label Content="当前总粒数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <Label Content="当前合格数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- <Label Content="当前不合格数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- </StackPanel>
- <StackPanel Orientation="Vertical">
- <TextBox x:Name="AllActiveNumTbx" HorizontalAlignment="Left" Margin="0,15,0,0" TextWrapping="Wrap" Width="120" FontWeight="Bold" FontSize="20" IsReadOnly="True" Background="{x:Null}"/>
- <TextBox x:Name="AllOkNumTbx" HorizontalAlignment="Left" Margin="0,17,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" IsReadOnly="True" Background="{x:Null}"/>
- <TextBox x:Name="AllNgNumTbx" HorizontalAlignment="Left" Margin="0,17,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="120" FontWeight="Bold" FontSize="20" IsReadOnly="True" Background="{x:Null}"/>
- </StackPanel>
- <StackPanel Orientation="Vertical">
- <Label x:Name="CamRunStaticLab" Content="未运行" HorizontalAlignment="Right" Margin="10,5,10,0" VerticalAlignment="Top" Background="{x:Null}" FontSize="25" Foreground="Red" FontWeight="Bold"/>
- <Button x:Name="DataClear" Content="清零" BorderThickness="1" HorizontalAlignment="Left" Margin="10,50,10,0" VerticalAlignment="Top" Width="80" Height="40" Background="#FF1709AF" FontWeight="Bold" FontSize="20" Foreground="White" Click="DataClear_Click">
- <Button.Template>
- <ControlTemplate TargetType="Button">
- <Border CornerRadius="5"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}">
- <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </StackPanel>
- </StackPanel>
- <!-- 卡片内容 -->
- </Border>
- <Border Grid.Column="0"
- Background="#7F808080"
- CornerRadius="8"
- BorderBrush="Gray"
- BorderThickness="1"
- Margin="15,180,15,0" Height="60" VerticalAlignment="Top">
- <StackPanel Orientation="Horizontal">
- <StackPanel Orientation="Vertical">
- <Label Content="计数速度:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="40,0,0,0" >
- <TextBox x:Name="ShuLiSpeedTbx" HorizontalAlignment="Left" Margin="0,15,0,0" TextWrapping="Wrap" Width="120" FontWeight="Bold" FontSize="20" IsReadOnly="True" Background="{x:Null}"/>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="10,0,0,0" >
- <Label Content="粒/秒" FontWeight="Bold" FontSize="20" Margin="0,10,0,0" />
- </StackPanel>
- </StackPanel>
- </Border>
- <Border Grid.Column="1"
- Background="#7F808080"
- CornerRadius="8"
- BorderBrush="Gray"
- BorderThickness="1"
- Margin="15,10,15,0" Height="250" VerticalAlignment="Top">
- <Label Content="控制按钮预留区域" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="30"/>
- </Border>
- </Grid>
- <Grid VerticalAlignment="Bottom" Height="50" Margin="0,0,0,5">
- <Border Grid.Column="0"
- Background="#7F808080"
- CornerRadius="8"
- BorderBrush="Gray"
- BorderThickness="1"
- Margin="10,0,10,0" VerticalAlignment="Bottom" Height="50">
- <StackPanel Orientation="Horizontal">
- <Label x:Name="CPUMonitorLab" HorizontalAlignment="Left" VerticalAlignment="Top" Height="40" Margin="30,8,0,0" Width="120" FontSize="18" FontWeight="Bold"></Label>
- <Label x:Name="RamMonitorLab" HorizontalAlignment="Left" VerticalAlignment="Top" Height="40" Margin="30,8,0,0" Width="180" FontSize="18" FontWeight="Bold"></Label>
- </StackPanel>
- </Border>
- </Grid>
- </Grid>
- </Page>
|