Skip to content

Commit ad3d951

Browse files
committed
feat: status messages blinks 3 times
1 parent e18b9eb commit ad3d951

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Desktop/MainWindow.xaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,19 @@
7272
<Separator Width="1" Height="26" />
7373
</StatusBarItem>
7474
<StatusBarItem>
75-
<Label Content="{Binding StatusMessage}">
75+
<Label Content="{Binding StatusMessage, NotifyOnTargetUpdated=True}">
76+
<Label.Triggers>
77+
<EventTrigger RoutedEvent="Binding.TargetUpdated">
78+
<BeginStoryboard>
79+
<Storyboard RepeatBehavior="3x" AutoReverse="True">
80+
<DoubleAnimation
81+
Storyboard.TargetProperty="Opacity"
82+
From="1.0" To="0.3"
83+
Duration="0:0:0.5" />
84+
</Storyboard>
85+
</BeginStoryboard>
86+
</EventTrigger>
87+
</Label.Triggers>
7688
</Label>
7789
</StatusBarItem>
7890
</StatusBar>

0 commit comments

Comments
 (0)