views:

17

answers:

0

There have been many situation where I need to have a resizable area. It seems that using a grid and a gridsplitter to resize the columns is a good idea. However, with this I am unable to do one major thing. That is collapse one of the columns after resizing the grid. Also, saving the position of the grid splitter requires me to have atleast one of the column widths on my viewmodel for a two column grid.

I'd like to know how others are accomplishing the task of having a resizeable, collapsible area where the state can be saved. An expander may seem like a good idea but I haven't found a decent way of implementing it to get the desired effect.

I investigated how visual studio splitted two columns and they have a custom "SplitterPanel" which seems to do exactly what I intend, however, it's closed source.