How to make the button content display vertically in WPF?
button, user-interface, wpf
Solution
Very easy, use `LayoutTransform` and `RotateTransform`:
<ToggleButton Content="Members Info" HorizontalAlignment="Right"
Click="btn_MembersInfo_Click">
<ToggleButton.LayoutTransform>
<RotateTransform Angle="-90" />
</ToggleButton.LayoutTransform>
</ToggleButton>
Problem
Recently I installed Visual Studio 2010 and I find that the content of the sidebar button goes vertically like the below image My question is: is there a simple way to achieve this effect in WPF?