I understand that the source is not related to LayoutTransform.
MSDN says:
Conversion settings provide powerful scaling and rotation capabilities. However, LayoutTransform ignores TranslateTransform operations. This is because the behavior of the system layout for the child FrameworkElement elements automatically corrects any offsets for the position of the scaled or rotated element in the layout and system coordinates of the parent element.
and the next "right" turns the button.
<Grid ShowGridLines="True"> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition Width="Auto"></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Button Grid.Row="1" Grid.Column="1">Excessively Long Button Still Ok <Button.LayoutTransform> <RotateTransform Angle="90" /> </Button.LayoutTransform> </Button> </Grid>
grantnz Nov 09 '10 at 10:05 2010-11-09 10:05
source share