Created
July 18, 2013 17:28
-
-
Save CH3COOH/6031217 to your computer and use it in GitHub Desktop.
いけちょ(@ikeda_shogouki)さんのコードを少し変更してみました。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Grid HorizontalAlignment="Right" | |
VerticalAlignment="Center" | |
Margin="0,0,20,0" | |
RenderTransformOrigin="0.5,0.5" | |
Width="{Binding ActualWidth, ElementName=innnerTextBlock, Mode=OneWay}" | |
Height="{Binding ActualWidth, ElementName=innnerTextBlock, Mode=OneWay}"> | |
<Grid Background="Blue" HorizontalAlignment="Center" VerticalAlignment="Bottom"> | |
<TextBlock Name="innnerTextBlock" | |
Foreground="Black" | |
TextAlignment="Center" | |
VerticalAlignment="Bottom" | |
FontSize="24" | |
Text="ここには可変長のテキストが入る" /> | |
</Grid> | |
<Grid.RenderTransform> | |
<CompositeTransform Rotation="270" /> | |
</Grid.RenderTransform> | |
</Grid> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment