Posted By

wraith808 on 08/12/13


WPF c#

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Move Borderless WPF Window

 / Published in: C#

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...

  1. public MainWindow()
  2. {
  3. InitializeComponent();
  4. this.MouseLeftButtonDown += delegate { this.DragMove(); };
  5. }

Report this snippet  

You need to login to post a comment.