摘要:
要移动窗体,需要在窗体的MouseDown事件中添加如下代码: void Window1_MouseDown(object sender, MouseButtonEventArgs e) { if (e.LeftButton == MouseButtonState.Pressed) { DragMove(); } }<Window x:Class="welcome.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http 阅读全文