1 地震仪告警记录中故障次数隐藏;电力载波机和光电交换机的供电状态隐藏; 2 除漏水和保护板事件的数据按照浮点数解析,别的按照整数解析; 3 解决TCP Server和Client存在的问题,包括无法监测到客户端连接,无法监测到服务端断开等问题;
29 lines
1.6 KiB
XML
29 lines
1.6 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
<Style x:Key="WindowControlButtonStyle" TargetType="Button">
|
|
<Setter Property="Width" Value="40"/>
|
|
<Setter Property="Height" Value="30"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="Button">
|
|
<Border Background="Transparent" Name="back" CornerRadius="0,10,0,10">
|
|
<TextBlock Text="{Binding Content,RelativeSource={RelativeSource AncestorType=Button,Mode=FindAncestor}}"
|
|
VerticalAlignment="Center" HorizontalAlignment="Center" FontFamily="../Fonts/#iconfont"/>
|
|
</Border>
|
|
<!--触发事件-->
|
|
<ControlTemplate.Triggers>
|
|
<!--鼠标移上去显示变化效果-->
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter TargetName="back" Property="Background" Value="#22FFFFFF"/>
|
|
</Trigger>
|
|
<!--鼠标点击时颜色加深-->
|
|
<Trigger Property="IsPressed" Value="True">
|
|
<Setter TargetName="back" Property="Background" Value="#44FFFFFF"/>
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
</ResourceDictionary> |