Wiki Link: [discussion:2989]
Resize handles outside window 

Feb 17 2010 at 8:46 PM
Edited Feb 17 2010 at 8:47 PM

I was just wondering, how can I set the resize handles outside of the window (not inside like standard). This is desired because I want to have buttons right on the inside of the window's edge, but the resize handles are getting in the way. I tried adding margin and/or padding to elements in the Template, hoping to fake this effect, but to no success. Any suggestions?

I'm also wondering why, in the Template, all the Heights and Widths are databound -- it works fine (and faster when resizing) without it, so why?


May 10 2010 at 5:47 PM
I'm not sure I understand your scenario. If you want controls that butt against the edge of the window and you want to be hit test visible over the resize grips you can do this using the new version of the library by setting the attached property WindowChrome.IsHitTestVisibleInChrome=True on the element.

The templates were databound because of a bug in WPF 3.5SP1, fixed in 4.0. This is also fixed in the new version of the library (I'm instead implicitly applying a negative margin to the root UIElement in the 3.5 case). You can now use your own template for the window.

Page view tracker