【WPF】WPF无边框、窗体初始化位置与可拖拽窗体的解决方案
https://blog.****.net/zjcxhswill/article/details/38646525
1、去除边框
WindowStyle="None" AllowsTransparency="True"
最好再设置窗体起始位置 WindowStartupLocation="CenterScreen"
2、拖拽
XAML:
MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
C#:
private void Window_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
{
this.DragMove();
}