设计界面
<Window x:Class="扔垃圾动画.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:扔垃圾动画"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="1000" WindowStyle="None" ShowInTaskbar="False" Background="White" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen">
<Canvas x:Name="bg">
<Image x:Name="ca