Anchor Window to Screen Edges in C#/WPF

Posted by Kirk on Stack Overflow See other posts from Stack Overflow or by Kirk
Published on 2010-05-17T04:50:31Z Indexed on 2010/05/17 5:00 UTC
Read the original article Hit count: 346

Filed under:
|
|

I've decided to teach myself C# by writing a music player in Visual Studio 2010. I went with WPF because from what I hear it sounds like it will be a good base to skin from.

I want to program my window with the behavior where if the window comes to the edge of a screen (within 10px or so) it will snap to the screen edge. What's the best way to go about this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf