Double-click event on WPF Window border

前端 未结 4 1549
天命终不由人
天命终不由人 2020-12-16 13:35

Is there any event which fires on double-click event on WPF Window border?

How I can catch it?

Thanks!

4条回答
  •  情歌与酒
    2020-12-16 13:55

    Both the Window, UserControl and it seems many/all Control based elements now support a MouseDoubleClick Event. I'm using VS2017 and buliding to .net 4.7.1, but maybe its older than that.

    https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.control.mousedoubleclick?view=netframework-4.7.2

提交回复
热议问题