|
@@ -229,9 +229,23 @@
|
|
hc:IconElement.Geometry="{StaticResource PowerAmplifierStart}"
|
|
hc:IconElement.Geometry="{StaticResource PowerAmplifierStart}"
|
|
Command="{Binding ShakerControl.PowerAmplifier.StartCommand}"
|
|
Command="{Binding ShakerControl.PowerAmplifier.StartCommand}"
|
|
Cursor="Hand"
|
|
Cursor="Hand"
|
|
- IsEnabled="{Binding ShakerControl.PowerAmplifier.Start, Converter={StaticResource Boolean2BooleanReConverter}}"
|
|
|
|
- Style="{StaticResource PowerAmplifierButtonStyle}"
|
|
|
|
- ToolTip="启动" />
|
|
|
|
|
|
+ ToolTip="启动">
|
|
|
|
+ <Button.Style>
|
|
|
|
+ <Style TargetType="Button" BasedOn="{StaticResource PowerAmplifierButtonStyle}">
|
|
|
|
+ <Style.Triggers>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Run}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Wait}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="True" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Warn}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ </Style.Triggers>
|
|
|
|
+ </Style>
|
|
|
|
+ </Button.Style>
|
|
|
|
+ </Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<StackPanel>
|
|
<TextBlock
|
|
<TextBlock
|
|
@@ -248,9 +262,23 @@
|
|
hc:IconElement.Geometry="{StaticResource PowerAmplifierStop}"
|
|
hc:IconElement.Geometry="{StaticResource PowerAmplifierStop}"
|
|
Command="{Binding ShakerControl.PowerAmplifier.StopCommand}"
|
|
Command="{Binding ShakerControl.PowerAmplifier.StopCommand}"
|
|
Cursor="Hand"
|
|
Cursor="Hand"
|
|
- IsEnabled="{Binding ShakerControl.PowerAmplifier.Start}"
|
|
|
|
- Style="{StaticResource PowerAmplifierButtonStyle}"
|
|
|
|
- ToolTip="停止" />
|
|
|
|
|
|
+ ToolTip="停止">
|
|
|
|
+ <Button.Style>
|
|
|
|
+ <Style TargetType="Button" BasedOn="{StaticResource PowerAmplifierButtonStyle}">
|
|
|
|
+ <Style.Triggers>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Run}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="True" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Wait}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Warn}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ </Style.Triggers>
|
|
|
|
+ </Style>
|
|
|
|
+ </Button.Style>
|
|
|
|
+ </Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
<StackPanel>
|
|
<StackPanel>
|
|
<TextBlock
|
|
<TextBlock
|
|
@@ -267,9 +295,23 @@
|
|
hc:IconElement.Geometry="{StaticResource PowerAmplifierReset}"
|
|
hc:IconElement.Geometry="{StaticResource PowerAmplifierReset}"
|
|
Command="{Binding ShakerControl.PowerAmplifier.ResetCommand}"
|
|
Command="{Binding ShakerControl.PowerAmplifier.ResetCommand}"
|
|
Cursor="Hand"
|
|
Cursor="Hand"
|
|
- IsEnabled="{Binding ShakerControl.PowerAmplifier.Start, Converter={StaticResource Boolean2BooleanReConverter}}"
|
|
|
|
- Style="{StaticResource PowerAmplifierButtonStyle}"
|
|
|
|
- ToolTip="报警复位" />
|
|
|
|
|
|
+ ToolTip="报警复位">
|
|
|
|
+ <Button.Style>
|
|
|
|
+ <Style TargetType="Button" BasedOn="{StaticResource PowerAmplifierButtonStyle}">
|
|
|
|
+ <Style.Triggers>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Run}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Wait}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="False" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ <DataTrigger Binding="{Binding Path=ShakerControl.OperatingStatus}" Value="{x:Static model:OperatingStatus.Warn}">
|
|
|
|
+ <Setter Property="IsEnabled" Value="True" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+ </Style.Triggers>
|
|
|
|
+ </Style>
|
|
|
|
+ </Button.Style>
|
|
|
|
+ </Button>
|
|
</StackPanel>
|
|
</StackPanel>
|
|
</UniformGrid>
|
|
</UniformGrid>
|
|
</Grid>
|
|
</Grid>
|