修改监控部分功能

This commit is contained in:
2026-05-09 17:49:46 +08:00
parent 06a5f9707d
commit 52ece8211b
14 changed files with 456 additions and 383 deletions

View File

@@ -41,6 +41,31 @@
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
<Style x:Key="ColorBreathStyle" TargetType="{x:Type FrameworkElement}">
<!-- 第一步:给控件默认添加一个纯色画刷(必须这样写才能做动画) -->
<Setter Property="Opacity" Value="1" />
<!-- 第二步:加载就自动播放 明暗呼吸动画 -->
<Style.Triggers>
<EventTrigger RoutedEvent="Loaded">
<BeginStoryboard>
<Storyboard>
<!-- 动画:透明度 1 → 0.2 → 1实现 亮 → 暗 → 亮 呼吸 -->
<DoubleAnimation
AutoReverse="True"
RepeatBehavior="Forever"
Storyboard.TargetProperty="Opacity"
From="1"
To="0.2"
Duration="0:0:0.8" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>