tags:

views:

55

answers:

1

I'm working on a WPF application, which I would like to be able to have a user drag the main window, and it will Dock when it approaches the end of the screen.

Is there a way to do this?

+1  A: 

Here's a similar thing implemented as AttachedBehaviors:

http://codeblitz.wordpress.com/2009/07/07/wpf-window-dock-behavior/

I'm not sure how production-ready it is though.

jgraves
that's really cool; thanks for the link
Robert Fraser