I decided to teach myself C # by writing a music player in Visual Studio 2010. I went with WPF because from what I hear, it looks like it will be a good base for skins.
I want to program my window with a behavior that, if the window approaches the edge of the screen (within 10 pixels or so), will snap to the edge of the screen. What is the best way to do this?
source
share