If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] Change which item resizes in DockPanel

I have a DockPanel with two items in it, one docked to the left, and one docked to the right. By default, when the DockPanel is resized, the item on the right resizes to fill the space, whereas the left item stays the same. How do I get it so that the left item resizes and the right item stays the same.

I want button1 to resize when the DockPanel resizes instead of button2.

Edit: I forgot to mention that the reason I'm using a DockPanel in the first place (as opposed to a Grid or some other panel) is that I want the ability to set the visibility of button2 to "collapsed" and then have button1 fill to take up the whole area. In my actual implementation, what I'm actually trying to do is have a panel that takes up the whole window. When a button is clicked (a "more options" type of thing), a second panel appears, and the two panels share the area in the window. I'd be open to any method of getting this done; I just thought a DockPanel made the most sense.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.