Silverlight: GridSplitter with a collapse button (V2)

This is a continuation of my last post.
I have made a better version of my ExtendedGridSplitter, this one works in both horizontal and vertical placement, I have made it more reliable and easy to work with.

Plus… I have found this post about animating Grid columns & rows and implemented it in my sample application.

Demo is here
Source is here

6 Responses to “Silverlight: GridSplitter with a collapse button (V2)”

  1. GEB Says:

    I have tried your ExtendedGridSplitter. It works great as written, but I ran into a problem when I split it out into a UserControl. In your example, you are using it on your main page. However, there seems to be a SilverLight problem with finding the name of the page if you separate it into a UserControl of it’s own. You shouldn’t have any trouble reproducing this. Any recommendations?

  2. Dom Says:

    I have the same problem as GEB, I put your code in a userControl that I use in a contentPresenter and it doesn’t seem to find the RowHeight because of it.

  3. Futurem Says:

    Hi Shemesh,
    i am trying to add the one more column on right and like to have gridsplitter with the column . Gridsplitter should function in a same way as its working in your example on left . how can i achieve the same result on right side so If I have three column then I should have two horizontal gridsplitter one on left one on right and on mouse click on right gridsplitter its collapse and expand. (As its working on left column in your example project )
    Thanks.

  4. shemesh Says:

    Futurem,
    if i understand correctly you want to add one more vertical splitter that will collapse an additional column to the right side?
    this should not be a problem:
    add the columns and splitter and handle the splitter button event.
    you already have the general idea in my code – adapt it !

  5. Varsha Says:

    Hi,

    I have tried your ExtendedGridSplitter and it works fine.

    I have one query, in your project you have created themes folder which has generic.xaml. When I was trying to add your code in our project (which was having theme folder already)so I added generic.xaml in theme folder but it was not working but when I added that in themes folder it works fine.

    What I want to know is where you are setting the path for generic.xaml as it was just a matter of one “s” for folder name.

    Can you please tell me so that I can have only one theme folder and not two (theme and themes)

    Thanks.

  6. shemesh Says:

    Varsha,
    “There are 2 significant breaking changes in how you handle the file generic.xaml…” “…The first change is that the file itself has a new location inside the Themes folder…”
    http://silverlight.net/blogs/jesseliberty/archive/2008/09/27/skinnable-custom-controls-change-to-generic-xaml.aspx

Leave a Reply