无标题WPF窗口,拖动,关闭
public partial class SecondWindow : Window
{
public SecondWindow()
{
InitializeComponent();
}
private void Window_MouseMove(object sender, MouseEventArgs e)
{
if (e.LeftButton == MouseButtonState.Pressed)
{
this.DragMove();
}
}
private void Button_Click(object sender, RoutedEventArgs e)
{
this.Close();
}
}
posted on 2018-09-12 01:27 OneCrazyStone 阅读(1902) 评论(2) 收藏 举报
浙公网安备 33010602011771号