|
- <UserControl
- x:Class="BPASmartClient.JXJFoodSmallStation.View.SystemParView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:con="clr-namespace:BPASmartClient.JXJFoodSmallStation.Converter"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.JXJFoodSmallStation.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.JXJFoodSmallStation.ViewModel"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:SystemParViewModel />
- </UserControl.DataContext>
-
- <UserControl.Resources>
- <SolidColorBrush x:Key="tabColor" Color="#FF2AB2E7" />
- <!--<SolidColorBrush x:Key="bordColor" Color="#33ffffff" />-->
- <SolidColorBrush x:Key="bordColor" Color="#332AB2E7" />
- <con:DataTableRedundantConverter x:Key="tabConvert" />
-
- <Style x:Key="RowRadioButtonStyle" TargetType="{x:Type RadioButton}">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type RadioButton}">
- <Border
- x:Name="NvaBor"
- Background="Transparent"
- BorderBrush="#FF2AB2E7"
- BorderThickness="0">
- <ContentControl
- Margin="10,4"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Content="{TemplateBinding Content}"
- FontSize="16" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="NvaBor" Property="Background" Value="#22ffffff" />
- <Setter TargetName="NvaBor" Property="BorderThickness" Value="0" />
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsChecked" Value="false" />
- <Condition Property="IsMouseOver" Value="True" />
- </MultiTrigger.Conditions>
- <MultiTrigger.Setters>
- <Setter TargetName="NvaBor" Property="Background" Value="#22ffffff" />
- </MultiTrigger.Setters>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="InputTextboxStyle" TargetType="TextBox">
- <Setter Property="Margin" Value="5,0,0,0" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="HorizontalAlignment" Value="Left" />
- <Setter Property="Width" Value="150" />
- <Setter Property="Height" Value="40" />
- <Setter Property="CaretBrush" Value="{StaticResource TitleBorderColor}" />
- <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="VerticalAlignment" Value="Center" />
- </Style>
-
- <Style x:Key="ControlButtonStyle" TargetType="Button">
- <Setter Property="Margin" Value="0" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="Foreground" Value="#FFF53F62" />
- <Setter Property="FontWeight" Value="SemiBold" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- CornerRadius="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
- <Border.Background>
- <ImageBrush
- ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png"
- Opacity="0.8"
- Stretch="Fill" />
- </Border.Background>
-
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="TitleTextblockStyle" TargetType="TextBlock">
- <Setter Property="FontSize" Value="16" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="Foreground" Value="{StaticResource tabColor}" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="FontWeight" Value="SemiBold" />
- </Style>
-
- </UserControl.Resources>
-
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Button
- Width="140"
- Height="30"
- Margin="10,0,10,0"
- HorizontalAlignment="Left"
- Command="{Binding SaveCommand}"
- Content="保存参数"
- FontSize="24"
- Style="{StaticResource ImageButtonStyle}" />
- <Button
- Grid.Column="1"
- Width="140"
- Height="30"
- Margin="10,0,10,0"
- HorizontalAlignment="Left"
- Command="{Binding SetParCommand}"
- Content="下发参数"
- FontSize="24"
- Style="{StaticResource ImageButtonStyle}" />
- <StackPanel
- Grid.Row="1"
- Margin="10,0,10,0"
- HorizontalAlignment="Left"
- Orientation="Vertical">
- <CheckBox
- Margin="0,10,10,0"
- VerticalAlignment="Center"
- Content="西门子设备连接"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- IsChecked="{Binding SiemensConnect}" />
- <CheckBox
- Margin="0,10,10,0"
- VerticalAlignment="Center"
- Content="粉料仓设备连接"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- IsChecked="{Binding WindSendConnect}" />
- <CheckBox
- Margin="0,10,10,0"
- VerticalAlignment="Center"
- Content="小料站产线PLC设备连接"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- IsChecked="{Binding HKPlcConnect}" />
-
-
- <CheckBox
- Margin="0,10,10,0"
- VerticalAlignment="Center"
- Content="屏蔽小料仓数量读取报警"
- FontFamily="楷体"
- FontSize="20"
- Foreground="Aqua"
- IsChecked="{Binding ShieldStockbinAlarm}" />
-
- </StackPanel>
- <Grid
- Grid.Row="1"
- Grid.Column="1"
- VerticalAlignment="Top">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="37*" />
- <ColumnDefinition Width="163*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <WrapPanel Grid.ColumnSpan="2" Margin="0,0,0,38">
- <TextBlock
- Margin="10"
- FontSize="16"
- Foreground="Aqua"
- Text="调速电机速度(进桶侧)" />
- <TextBox
- Width="50"
- Margin="10"
- FontSize="16"
- Text="{Binding AxisLoadSpeed}" />
- <TextBlock
- FontSize="16"
- Foreground="Aqua"
- Text="" />
- </WrapPanel>
- <WrapPanel
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Margin="0,42,0,75">
- <TextBlock
- Margin="10"
- FontSize="16"
- Foreground="Aqua"
- Text="调速电机速度(过渡侧)" />
- <TextBox
- Width="50"
- Margin="10"
- FontSize="16"
- Text="{Binding AxisMidSpeed}" />
- <TextBlock
- FontSize="16"
- Foreground="Aqua"
- Text="" />
- </WrapPanel>
- <WrapPanel
- Grid.Row="1"
- Grid.ColumnSpan="2"
- Margin="0,5,0,33">
- <TextBlock
- Margin="10"
- FontSize="16"
- Foreground="Aqua"
- Text="调速电机速度(出桶侧)" />
- <TextBox
- Width="50"
- Margin="10"
- FontSize="16"
- Text="{Binding AxisUnLoadSpeed}" />
- <TextBlock
- FontSize="16"
- Foreground="Aqua"
- Text="" />
- </WrapPanel>
- <WrapPanel
- Grid.Row="1"
- Grid.RowSpan="2"
- Grid.ColumnSpan="2"
- Margin="0,47,0,71">
- <TextBlock
- Margin="10"
- FontSize="16"
- Foreground="Aqua"
- Text="伺服1速度(进桶侧)" />
- <TextBox
- Width="50"
- Margin="10"
- FontSize="16"
- Text="{Binding Axis1Speed}" />
- <TextBlock
- FontSize="16"
- Foreground="Aqua"
- Text="" />
- </WrapPanel>
- <WrapPanel
- Grid.Row="2"
- Grid.ColumnSpan="2"
- Margin="0,9,0,28">
- <TextBlock
- Margin="10"
- FontSize="16"
- Foreground="Aqua"
- Text="伺服2速度(出桶侧)" />
- <TextBox
- Width="50"
- Margin="10"
- FontSize="16"
- Text="{Binding Axis2Speed}" />
- <TextBlock
- FontSize="16"
- Foreground="Aqua"
- Text="" />
- </WrapPanel>
- </Grid>
- </Grid>
- </UserControl>
|