一、WPF窗体上有一个名为rectangle2的矩形
对应的XAML如下:
<Window x:Class="WpfVideo.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="434" Width="593" Loaded="Window_Loaded">
<Grid>
<Button Content="Button" Height="23" HorizontalAlignment="Left" Margin="29,67,0,0" Name&#