![](https://i-blog.csdnimg.cn/blog_migrate/0eec26d39a0a7eabd2fecc30bc6d7249.png)
xaml
<Window x:Class="wpf托盘加丢垃圾动画.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:wpf托盘加丢垃圾动画"
mc:Ignorable="d"
Title="MainWindow" Height="700" Width="1050" WindowStartupLocation="CenterScreen" WindowStyle="None" ShowInTaskbar="False" Background="White" Loaded="Window_Loaded">
<Canvas x:Name="GameBG&