|
|
@@ -6,7 +6,96 @@ |
|
|
|
xmlns:local="clr-namespace:BPASmartClient.Academy.View" |
|
|
|
mc:Ignorable="d" |
|
|
|
d:DesignHeight="450" d:DesignWidth="800"> |
|
|
|
<UserControl.Resources> |
|
|
|
<Style x:Key="checkBox" TargetType="{x:Type CheckBox}"> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="{x:Type CheckBox}"> |
|
|
|
<Border x:Name="bord" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"> |
|
|
|
<ContentControl Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> |
|
|
|
</Border> |
|
|
|
<ControlTemplate.Triggers> |
|
|
|
<Trigger Property="IsChecked" Value="True"> |
|
|
|
<Setter Property="Background" TargetName="bord"> |
|
|
|
<Setter.Value> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png"/> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsChecked" Value="False"> |
|
|
|
<Setter Property="Background" TargetName="bord"> |
|
|
|
<Setter.Value> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png"/> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Trigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
<Style x:Key="radiobutton" TargetType="{x:Type RadioButton}"> |
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="{x:Type RadioButton}"> |
|
|
|
<Border x:Name="bord" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}"> |
|
|
|
<ContentControl Foreground="{TemplateBinding Foreground}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" /> |
|
|
|
</Border> |
|
|
|
<ControlTemplate.Triggers> |
|
|
|
<Trigger Property="IsChecked" Value="True"> |
|
|
|
<Setter Property="Background" TargetName="bord"> |
|
|
|
<Setter.Value> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/红色圆角矩形背景.png"/> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Trigger> |
|
|
|
<Trigger Property="IsChecked" Value="False"> |
|
|
|
<Setter Property="Background" TargetName="bord"> |
|
|
|
<Setter.Value> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/buttonOff.png"/> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Trigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style> |
|
|
|
</UserControl.Resources> |
|
|
|
<Grid> |
|
|
|
|
|
|
|
<Grid.RowDefinitions> |
|
|
|
<RowDefinition/> |
|
|
|
<RowDefinition Height="0.5*"/> |
|
|
|
</Grid.RowDefinitions> |
|
|
|
<Grid> |
|
|
|
<Grid.ColumnDefinitions> |
|
|
|
<ColumnDefinition Width="2*"/> |
|
|
|
<ColumnDefinition/> |
|
|
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid Margin="10,2"> |
|
|
|
<Grid.Background> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景边框4.png"/> |
|
|
|
</Grid.Background> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Column="1" Margin="0,2,10,2"> |
|
|
|
<Grid.Background> |
|
|
|
<ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/背景边框4.png"/> |
|
|
|
</Grid.Background> |
|
|
|
<UniformGrid Rows="4" > |
|
|
|
<CheckBox Style="{StaticResource Beveledcheck}" Content="系统启动" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,20"/> |
|
|
|
<StackPanel Orientation="Vertical" VerticalAlignment="Center"> |
|
|
|
<TextBlock Text="阀门开关:" HorizontalAlignment="Left" Foreground="White" VerticalAlignment="Top"/> |
|
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left"> |
|
|
|
<RadioButton Content="配料搅拌:开" Style="{StaticResource radiobutton}" GroupName="1" Width="120" Foreground="Black" Height="40" BorderThickness="0"/> |
|
|
|
<RadioButton Content="配料搅拌:关" IsChecked="True" Style="{StaticResource radiobutton}" GroupName="1" Width="120" Foreground="Black" Height="40" BorderThickness="0"/> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</UniformGrid> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</UserControl> |