Home > View Post

StatusBar SizingGrip in WPF

This had me stuck for a little while. I always like to add a resize grip to my forms as it provides a bigger target for resizing the form (remember Fitts' Law?).

In Windows forms you would simply set the SizeGripStyle for the Form to show to achieve this.

Windows Form's SizeGripStyle property

However, if you were using a StatusBar (or StatusStrip as it was called in WinForms) you could easily accidentally cover up the resize handle so you had to make sure that the StatusStrip's various Grip related properties are set...

StatusStrip Grip Related properties

Fortunately, things get much simpler in WPF. The StatusBar control no longer contains any grip related nonsense and it's just a matter of setting the Window's ResizeMode to CanResizeWithGrip. And this works even if you have a StatusBar :)

Resize Grip in WPF (normal size and zoomed in)

Wonderful (but took me a while to find!).

Tags: WPF

Josh Post By Josh Twist
12:49 AM
29 Jun 2007

» Next Post: Compiled and checked in
« Previous Post: The Navman F20 Satellite Navigation Device

Comments are closed for this post.

Posted by Jerry @ 22 May 2009 6:57 AM
Cool! I couldn't find it either. Thanks. I've been a Sybase Powerbuilder developer for the past 15 years and am just startting to develop .NET apps using VS2008 and I love WPF!

Posted by SeriousDen @ 23 Nov 2009 9:39 PM
???????, ? ???? ????? ?? ????? ???? grip, ??????? ??? ? ???? ???????! =)

Posted by Matt McGregor @ 02 Feb 2010 1:00 PM
Thanks dude, couldn't see it either.

Posted by Matthew Overall @ 13 Oct 2010 10:16 PM
Thank you so much, I couldn't figure out how to get it to show up.

Posted by Dave @ 29 Jul 2011 5:26 PM
Thank you very much for posting this - I thought I had to write my own control to get this to function this way!

© 2005 - 2022 Josh Twist - All Rights Reserved.