|
|
@@ -6,281 +6,328 @@
|
|
|
xmlns:local="clr-namespace:CCDCountWpf.WpfPage"
|
|
|
xmlns:BindNameSpace="clr-namespace:CCDCountWpf"
|
|
|
mc:Ignorable="d"
|
|
|
- Title="MainPage" Height="503" Width="876" Loaded="Page_Loaded">
|
|
|
+ Title="MainPage" Height="503" Width="950" Loaded="Page_Loaded">
|
|
|
|
|
|
<Grid>
|
|
|
- <Grid Margin="0,0,0,187" SizeChanged="Grid_SizeChanged">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Border Grid.Column="0" BorderBrush="Black" BorderThickness="1" Margin="2,2,2,2">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="380"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid Margin="0,0,0,187">
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Margin="2,2,2,2">
|
|
|
<Image x:Name="ShowBox" Source="{Binding BitmapImage}" Margin="0,0,0,0"/>
|
|
|
</Border>
|
|
|
- <Border Grid.Column="1" BorderBrush="Black" BorderThickness="1" Margin="2,2,2,2">
|
|
|
- <StackPanel Orientation="Vertical">
|
|
|
- <Image x:Name="MiniShowImageBox1" Source="{Binding ThumbnailImage1}" Margin="3,5,3,5" MouseDown="MiniShowImageBox1_MouseDown" Cursor="Hand" />
|
|
|
- <Image x:Name="MiniShowImageBox2" Source="{Binding ThumbnailImage2}" Margin="3,5,3,5" MouseDown="MiniShowImageBox2_MouseDown" Cursor="Hand" />
|
|
|
- <Image x:Name="MiniShowImageBox3" Source="{Binding ThumbnailImage3}" Margin="3,5,3,5" MouseDown="MiniShowImageBox3_MouseDown" Cursor="Hand"/>
|
|
|
- <Image x:Name="MiniShowImageBox4" Source="{Binding ThumbnailImage4}" Margin="3,5,3,5" MouseDown="MiniShowImageBox4_MouseDown" Cursor="Hand"/>
|
|
|
- </StackPanel>
|
|
|
- </Border>
|
|
|
</Grid>
|
|
|
-
|
|
|
- <Grid Margin="0,0,0,10" Height="170" VerticalAlignment="Bottom">
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- <ColumnDefinition Width="*"/>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
|
|
|
- <Border Grid.Column="0"
|
|
|
+ <Border BorderBrush="Black" BorderThickness="1" Height="180" VerticalAlignment="Bottom" Padding="0,0,0,10">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ <ColumnDefinition Width="*"/>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Border Grid.Column="0"
|
|
|
Background="#FF0087FF"
|
|
|
CornerRadius="8"
|
|
|
BorderBrush="Gray"
|
|
|
BorderThickness="1"
|
|
|
Margin="15,10,15,0" Height="155" VerticalAlignment="Top" Cursor="">
|
|
|
- <Grid>
|
|
|
- <StackPanel Orientation="Vertical" Margin="0,0,80,0">
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Label Content="总粒数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
- <Label x:Name="AllActiveNumLab" Content="{Binding AllActiveNum}" HorizontalAlignment="Left" Margin="20,10,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Label Content="合格数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
- <Label x:Name="AllOkNumLab" Content="{Binding AllOkNum}" HorizontalAlignment="Left" Margin="20,10,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
+ <Grid>
|
|
|
+ <StackPanel Orientation="Vertical" Margin="0,0,80,0">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label Content="总粒数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
+ <Label x:Name="AllActiveNumLab" Content="{Binding AllActiveNum}" HorizontalAlignment="Left" Margin="20,10,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label Content="合格数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
+ <Label x:Name="AllOkNumLab" Content="{Binding AllOkNum}" HorizontalAlignment="Left" Margin="20,10,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label Content="不合格数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
+ <Label x:Name="AllNgNumLab" Content="{Binding AllNgNum}" HorizontalAlignment="Left" Margin="0,10,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <Label Content="不合格数:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
- <Label x:Name="AllNgNumLab" Content="{Binding AllNgNum}" HorizontalAlignment="Left" Margin="0,10,0,0" Width="80" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
- <Label x:Name="CamRunStaticLab" Content="{Binding CamRunStatic}" HorizontalAlignment="Right" Margin="10,5,10,0" VerticalAlignment="Top" Background="{x:Null}" FontSize="25" Foreground="{Binding CameraStaticColor}" FontWeight="Bold" />
|
|
|
- <Button x:Name="DataClear" Content="清零" BorderThickness="1" HorizontalAlignment="Right" Margin="10,0,10,12" Width="80" Height="40" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="DataClear_Click" Cursor="Hand" VerticalAlignment="Bottom">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <Label x:Name="CamRunStaticLab" Content="{Binding CamRunStatic}" HorizontalAlignment="Right" Margin="10,5,10,0" VerticalAlignment="Top" Background="{x:Null}" FontSize="25" Foreground="{Binding CameraStaticColor}" FontWeight="Bold" />
|
|
|
+ <Button x:Name="DataClear" Content="清零" BorderThickness="1" HorizontalAlignment="Right" Margin="10,0,10,12" Width="80" Height="40" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Click="DataClear_Click" Cursor="Hand" VerticalAlignment="Bottom">
|
|
|
+ <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>
|
|
|
- </Grid>
|
|
|
- <!-- 卡片内容 -->
|
|
|
- </Border>
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ </Grid>
|
|
|
+ <!-- 卡片内容 -->
|
|
|
+ </Border>
|
|
|
|
|
|
- <Border Grid.Column="1"
|
|
|
+ <Border Grid.Column="1"
|
|
|
Background="#FF0087FF"
|
|
|
CornerRadius="8"
|
|
|
BorderBrush="Gray"
|
|
|
BorderThickness="1"
|
|
|
Margin="15,10,15,0" Height="60" VerticalAlignment="Top">
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
- <Label Content="计数速度:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
- <Label x:Name="ShuLiSpeedTbx" Content="{Binding ShuLiSpeed}" HorizontalAlignment="Left" Margin="0,0,0,0" Width="60" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
- <Label Content="粒/秒" FontWeight="Bold" FontSize="20" Margin="0,10,0,0" Foreground="White" />
|
|
|
- </StackPanel>
|
|
|
- </Border>
|
|
|
- <Border Grid.Column="1"
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
+ <Label Content="计数速度:" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" FontWeight="Bold" FontSize="20" Foreground="White"/>
|
|
|
+ <Label x:Name="ShuLiSpeedTbx" Content="{Binding ShuLiSpeed}" HorizontalAlignment="Left" Margin="0,0,0,0" Width="60" FontWeight="Bold" FontSize="20" Background="{x:Null}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White"/>
|
|
|
+ <Label Content="粒/秒" FontWeight="Bold" FontSize="20" Margin="0,10,0,0" Foreground="White" />
|
|
|
+ </StackPanel>
|
|
|
+ </Border>
|
|
|
+ <Border Grid.Column="1"
|
|
|
Background="#FF0087FF"
|
|
|
CornerRadius="8"
|
|
|
BorderBrush="Gray"
|
|
|
BorderThickness="1"
|
|
|
Margin="15,80,15,0" Height="85" VerticalAlignment="Top">
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
- <Button x:Name="StartIdentifyBtn" Content="开始" BorderThickness="1" HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Top" Width="100" Height="60" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="StartIdentifyBtn_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>
|
|
|
- <Button x:Name="StopIdentifyBtn" Content="暂停" BorderThickness="1" HorizontalAlignment="Right" Margin="0,0,0,0" VerticalAlignment="Top" Width="100" Height="60" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="StopIdentifyBtn_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>
|
|
|
- </Border>
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <Button x:Name="StartIdentifyBtn" Content="开始" BorderThickness="1" HorizontalAlignment="Right" Margin="0,0,20,0" VerticalAlignment="Top" Width="100" Height="60" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="StartIdentifyBtn_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>
|
|
|
+ <Button x:Name="StopIdentifyBtn" Content="暂停" BorderThickness="1" HorizontalAlignment="Right" Margin="0,0,0,0" VerticalAlignment="Top" Width="100" Height="60" Background="#FF0123FF" FontWeight="Bold" FontSize="20" Foreground="White" Cursor="Hand" Click="StopIdentifyBtn_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>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
|
|
|
- <Border Grid.Column="2"
|
|
|
- Background="#FF0087FF"
|
|
|
+ <Border Grid.Column="1" BorderBrush="Black" BorderThickness="1">
|
|
|
+ <Border Background="#FF0087FF"
|
|
|
CornerRadius="8"
|
|
|
BorderBrush="Gray"
|
|
|
BorderThickness="1"
|
|
|
- Margin="15,10,15,0" Height="155" VerticalAlignment="Top" Cursor="">
|
|
|
+ Margin="15,10,15,10" Cursor="">
|
|
|
<Grid>
|
|
|
- <StackPanel Orientation="Vertical">
|
|
|
- <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
|
|
|
- <TextBlock Text="A速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
- <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueUpUPBtn" Content="++" Width="30" Height="30" Click="BottingMaterialCylinderVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
|
+ <StackPanel Orientation="Vertical">
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,10,0,0" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="A速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
+ <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueUpUPBtn" Content="++" Width="45" Height="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn" Content="+" Width="30" Height="30" Click="BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn" Content="+" Width="45" Height="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottingMaterialCylinderVibrationTableHighSpeedValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="79" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" Background="{x:Null}"/>
|
|
|
- <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn" Content="-" Width="30" Click="BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottingMaterialCylinderVibrationTableHighSpeedValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="79" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" Background="{x:Null}"/>
|
|
|
+ <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn" Content="-" Width="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="30" Click="BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="45" Click="BottingMaterialCylinderVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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 Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
|
|
|
- <TextBlock Text="B速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
- <Button x:Name="BottingFilterVibrationTableHighSpeedValueUpUpBtn" Content="++" Width="30" Height="30" Click="BottingFilterVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="B速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
+ <Button x:Name="BottingFilterVibrationTableHighSpeedValueUpUpBtn" Content="++" Width="45" Height="45" Click="BottingFilterVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <Button x:Name="BottingFilterVibrationTableHighSpeedValueUpBtn" Content="+" Width="30" Height="30" Click="BottingFilterVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="BottingFilterVibrationTableHighSpeedValueUpBtn" Content="+" Width="45" Height="45" Click="BottingFilterVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottingFilterVibrationTableHighSpeedValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" Background="{x:Null}"/>
|
|
|
- <Button x:Name="BottingFilterVibrationTableHighSpeedValueDownBtn" Content="-" Width="30" Click="BottingFilterVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottingFilterVibrationTableHighSpeedValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Foreground="White" Background="{x:Null}"/>
|
|
|
+ <Button x:Name="BottingFilterVibrationTableHighSpeedValueDownBtn" Content="-" Width="45" Click="BottingFilterVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <Button x:Name="BottingFilterVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="30" Click="BottingFilterVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="BottingFilterVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="45" Click="BottingFilterVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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 Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
|
|
|
- <TextBlock Text="C速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
- <Button x:Name="BottingCountVibrationTableHighSpeedValueUpUpBtn" Content="++" Width="30" Height="30" Click="BottingCountVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="C速度:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
+ <Button x:Name="BottingCountVibrationTableHighSpeedValueUpUpBtn" Content="++" Width="45" Height="45" Click="BottingCountVibrationTableHighSpeedValueUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <Button x:Name="BottingCountVibrationTableHighSpeedValueUpBtn" Content="+" Width="30" Height="30" Click="BottingCountVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="BottingCountVibrationTableHighSpeedValueUpBtn" Content="+" Width="45" Height="45" Click="BottingCountVibrationTableHighSpeedValueUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottingCountVibrationTableHighSpeedValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" Foreground="White"/>
|
|
|
- <Button x:Name="BottingCountVibrationTableHighSpeedValueDownBtn" Content="-" Width="30" Click="BottingCountVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottingCountVibrationTableHighSpeedValue,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" Foreground="White"/>
|
|
|
+ <Button x:Name="BottingCountVibrationTableHighSpeedValueDownBtn" Content="-" Width="45" Click="BottingCountVibrationTableHighSpeedValueDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- <Button x:Name="BottingCountVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="30" Click="BottingCountVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
- <Button.Template>
|
|
|
- <ControlTemplate TargetType="Button">
|
|
|
- <Border CornerRadius="5"
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ <Button x:Name="BottingCountVibrationTableHighSpeedValueDownDownBtn" Content="--" Width="45" Click="BottingCountVibrationTableHighSpeedValueDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
+ <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
|
|
|
+ </Border>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Button.Template>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal" Margin="0,20,0,0" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Text="罐装值:" FontSize="20" Margin="0,0,0,0" VerticalAlignment="Center" Foreground="White"/>
|
|
|
+ <Button x:Name="BottValueSetUpUpBtn" Content="++" Width="45" Height="45" Click="BottValueSetUpUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
+ <Button x:Name="BottValueSetUpBtn" Content="+" Width="45" Height="45" Click="BottValueSetUpBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
+ <TextBox Text="{Binding Source={x:Static BindNameSpace:PlcSettingMessageBus.PlcMessageShowBindage},Path = BottValueSet,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" FontSize="16" Width="80" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="{x:Null}" Foreground="White"/>
|
|
|
+ <Button x:Name="BottValueSetDownBtn" Content="-" Width="45" Click="BottValueSetDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
+ <Button x:Name="BottValueSetDownDownBtn" Content="--" Width="45" Click="BottValueSetDownDownBtn_Click" Background="#FF0123FF" Foreground="White">
|
|
|
+ <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>
|
|
|
- </StackPanel>
|
|
|
+ </ScrollViewer>
|
|
|
</Grid>
|
|
|
- <!-- 卡片内容 -->
|
|
|
</Border>
|
|
|
- </Grid>
|
|
|
-
|
|
|
+ </Border>
|
|
|
+
|
|
|
</Grid>
|
|
|
</Page>
|