close #890
This commit is contained in:
1 parent
64c412058f
commit
3abb965fc0
1 file changed
+11
@@ -387,6 +387,17 @@ namespace HandyControl.Controls
|
|||||||
_isDragged = false;
|
_isDragged = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void OnMouseDown(MouseButtonEventArgs e)
|
||||||
|
{
|
||||||
|
if (e.ChangedButton == MouseButton.Middle && e.ButtonState == MouseButtonState.Pressed)
|
||||||
|
{
|
||||||
|
if (ShowCloseButton || ShowContextMenu)
|
||||||
|
{
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 创建动画
|
/// 创建动画
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in new issue
Block a user