Expander control show up with the button on the right? [modified]
-
I would like to use an expander control, however I want the expansion indicator to be on the right side of the text. Is this possible with the Expander control, or will I need to try and get tricky with my layout? I have found that I can set the "FlowDirection" property to RightToLeft and it will put the text and button aligned to the right, but then I have to set my text to "...More Details" rather than "More Details..." and I also have to set the FlowDirection to LeftToRight on all of the child items within that expander. It just seems like this is a hack.
modified on Wednesday, November 5, 2008 12:28 AM
-
I would like to use an expander control, however I want the expansion indicator to be on the right side of the text. Is this possible with the Expander control, or will I need to try and get tricky with my layout? I have found that I can set the "FlowDirection" property to RightToLeft and it will put the text and button aligned to the right, but then I have to set my text to "...More Details" rather than "More Details..." and I also have to set the FlowDirection to LeftToRight on all of the child items within that expander. It just seems like this is a hack.
modified on Wednesday, November 5, 2008 12:28 AM
You'll have to create a template for the expander. The easiest way to do this is in Expression Blend, so you don't have to type all the template stuff. The expansion indicator is nothing more than a circle and a poly on a grid, which can be changed and moved aound very easily. The tricky part is that an expander contains 4 templates, one for every direction. So, You'll have your expander. In Blend you right-click the expander and click edit template -> edit a copy. This will give you the main template. Now you right-click "HeaderSite" in the objects pane and edit that template. I believe you're now where you want to be. If you change the grid and move the parts around you're done. Good Luck!
Dawn is nature's way of telling you to go to bed.