Move Borderless WPF Window


/ Published in: C#
Save to your folder(s)

I wanted to create a borderless window, but still be able to move it. I thought it would be complicated, but just like a lot of things with WPF, things were simpler than I thought...


Copy this code and paste it in your HTML
  1. public MainWindow()
  2. {
  3. InitializeComponent();
  4. this.MouseLeftButtonDown += delegate { this.DragMove(); };
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.