WPF.双击事件
作者:互联网
1、WPF双击事件 别走弯路-CSDN论坛.html(https://bbs.csdn.net/topics/392493855?list=2474794)
2、
private void MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { switch (e.ClickCount) { case 1://单击 { NativeMethods.SendMessage(Hwnd, (int)WindowMessages.WM_NCLBUTTONDOWN, (IntPtr)HitTest.HTCAPTION, IntPtr.Zero); break; } case 2://双击 { WindowState = WindowState == WindowState.Maximized ? WindowState.Normal : WindowState.Maximized; break; } }
3、
4、
5、
标签:case,break,WindowState,事件,Maximized,WPF,双击 来源: https://www.cnblogs.com/csskill/p/11130262.html