<Window x:Class="Wpfdemo1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded" MouseLeftButtonDown="Window_MouseLeftButtonDown">
<Canvas x:Name="body">
</Canvas>
</Window>
/// <summary>
/// MainWindow.xaml 的交互逻辑
/// </summary>
public partial class MainWindow : Window
{
Ellipse ell;
public MainWindow()
{
InitializeComponent();
ell = new Ellipse();
ell.Fill = new SolidColorBrush(Colors.Red);
ell.Width = 50;
ell.Height = 50;
bo