Justifying of Expander’s header button
From internal discussion list:
From: MS employee
Subject: Expander arrow button placementHi,
I have an Expander that expands in the Down direction. How do I make the Expander button be justified to the right, rather than the left which is the default?
From: Another helpful MS employee
Subject: RE: Expander arrow button placementThere is no easy way as I know, you have to restyle the Expander to achieve it.
From: Myself
Subject: RE: Expander arrow button placementThe easiest way to achieve the right justification of Expander header is by using following “double – transformation”. Actually, you are flipping the expander and then flipping back it’s header text. You’ll have to flip it’s content as well.
This way is quick and dirty, however the best way to do it is by creating custom template for header.
<Expander RenderTransformOrigin="0.5,0.5"> <Expander.Header> <TextBlock Margin="30,0,30,0" VerticalAlignment="Top" Text="Test"> <TextBlock.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="-1" ScaleY="1"/> </TransformGroup> </TextBlock.RenderTransform> </TextBlock> </Expander.Header> <Expander.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="-1" ScaleY="1"/> </TransformGroup> </Expander.RenderTransform> </Expander>
Have a nice day.
July 12th, 2007 · Comments (2)
2 Responses to “Justifying of Expander’s header button”
Leave a Reply
Discover other tags
My tools
- .NET Framework Detector
- Duplicate images finder
- Exchange Security Policy for Windows Mobile Devices Fix
- Gas Price Windows Vista SideBar gadget
- Israel Traffic Information Windows Vista SideBar gadget
- Localization fix for SAP ES Explorer for Visual Studio
- LocTester
- RTL and LTR in Windows Live Writer
- Silverlight controls library
- Snipping tool integration plugin for WLW
- USB FM receiver library
- Vista Battery Saver
- WebCam control for WPF
- Windows Live SkyDrive attachment for Windows Live Writer
- Wireless Migrator
- WPF Virtual Keyboard




January 1st, 2009 at 12:17 am
מה דעתך לגבי כנס המפתחים הבא?
http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/07/15/Developer-Academy-2-_2D00_-_D005D905E805D505E205_-_D405DE05E405EA05D705D905DD05_-_D405D105D005_.aspx
January 1st, 2009 at 12:17 am
You’ve been kicked (a good thing) – Trackback from DotNetKicks.com