#### 拖动自定义控件使其宽高随之改变

首先，UserControl注册`SizeChanged`事件，然后

```csharp
/// <summary>
/// 尺寸改变为新值
/// </summary>
private void CurvePnl_SizeChanged(object sender, SizeChangedEventArgs e)
{
    this.Width = e.NewSize.Width;
    this.Height = e.NewSize.Height;
}

```

