Silverlight Resize Drag Behavior for targeted UIElements

Published Wed, Apr 21 2010 1:19 AM

I have been searching for a Silverlight behavior where you have the ability to resize a column. Normally you can do such a thing with a GridSplitter onto a grid with several columns.

Unfortunately this doesn’t work when you also wants to implement something like a hide and show menu column.

Therefore I created this behavior myself and released it on CodePlex. So if you are developing a Silverlight application and you find yourself in need of a simple behavior that allows you to resize an element by dragging either in height or width, go to the ResizeDragBehavior on Codeplex.

The solution also includes a sample project where you can see how you can easily setup a menupanel-based interface.

ResizeDragBehavior

The behavior is fully compatible with Expression Blend.

Comments

# Dan F said on Thursday, August 19, 2010 1:38 AM

Very nice. I've been hunting for a DockPanelSplitter or a DockSplitter for a while now, your ResizeDragBehavior fits the bill perfectly. Thanks Andries!

# Samuel Jack said on Friday, March 29, 2013 12:40 PM

Just what I needed. Thanks!

I've used this in RavenDb Studio's Silverlight UI.

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 1 and 8 and type the answer here: