Skip to content

Instantly share code, notes, and snippets.

@CH3COOH
Created July 18, 2013 17:28
Show Gist options
  • Save CH3COOH/6031217 to your computer and use it in GitHub Desktop.
Save CH3COOH/6031217 to your computer and use it in GitHub Desktop.
いけちょ(@ikeda_shogouki)さんのコードを少し変更してみました。
<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