当你像在浏览器上一样将它拖到顶部时,我如何使我的无边界表单正常化,我曾尝试过这个
private void Window_MouseDown(object sender, MouseButtonEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
DragMove();
// if (WindowState == System.Windows.WindowState.Maximized)
// WindowState = System.Windows.WindowState.Normal;
}
}
但是无论你在哪里点击表格,它都会一直正常化