|
|
@@ -54,6 +54,38 @@ |
|
|
|
</Setter> |
|
|
|
</Style.Setters> |
|
|
|
</Style> |
|
|
|
|
|
|
|
<Style x:Key="StatusBtnStyle网络连接状态" TargetType="ToggleButton"> |
|
|
|
<Style.Setters> |
|
|
|
<Setter Property="Width" Value="20"></Setter> |
|
|
|
<Setter Property="Height" Value="25"></Setter> |
|
|
|
<Setter Property="Cursor" Value="Hand"></Setter> |
|
|
|
<Setter Property="IsChecked" Value="{Binding IsCheck,Mode=TwoWay}"></Setter> |
|
|
|
<Setter Property="Template"> |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="ToggleButton"> |
|
|
|
<Grid Cursor="Hand"> |
|
|
|
<Image x:Name="image1" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Source="/BPASmartClient.CustomResource;component/Image/告警/Wifi_NO.ico" Panel.ZIndex="0" ></Image> |
|
|
|
</Grid> |
|
|
|
<ControlTemplate.Triggers> |
|
|
|
<Trigger Property="IsChecked" Value="true"> |
|
|
|
<Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.ico"></Setter> |
|
|
|
</Trigger> |
|
|
|
<MultiDataTrigger> |
|
|
|
<MultiDataTrigger.Conditions> |
|
|
|
<Condition Binding="{Binding IsCheck}" Value="true"></Condition> |
|
|
|
<Condition Binding="{Binding IsAlarm}" Value="true"></Condition> |
|
|
|
</MultiDataTrigger.Conditions> |
|
|
|
<MultiDataTrigger.Setters> |
|
|
|
<Setter TargetName="image1" Property="Source" Value="/BPASmartClient.CustomResource;component/Image/告警/Wifi_OK.ico"></Setter> |
|
|
|
</MultiDataTrigger.Setters> |
|
|
|
</MultiDataTrigger> |
|
|
|
</ControlTemplate.Triggers> |
|
|
|
</ControlTemplate> |
|
|
|
</Setter.Value> |
|
|
|
</Setter> |
|
|
|
</Style.Setters> |
|
|
|
</Style> |
|
|
|
<!--#endregion--> |
|
|
|
|
|
|
|
<!--#region Image --> |
|
|
|