【发布时间】:2012-03-31 15:52:31
【问题描述】:
这是我在 Blend 中创建的 UserControl:
<StackPanel Orientation="Horizontal" Background="#FF0084FF" Height="400">
<TextBlock TextWrapping="Wrap" Margin="10,0,20,0" Text="Kategorija1" FontFamily="Segoe Print" FontWeight="Bold" FontSize="26.667" RenderTransformOrigin="0.5,0.5" Foreground="White" TextAlignment="Center" VerticalAlignment="Center">
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform Angle="-90"/>
<TranslateTransform/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
现在我希望 TextBlock 文本属性是可编辑的,这样我就可以在后面的 c# 代码中更改它。
怎么做?
【问题讨论】:
标签: c# wpf xaml user-controls expression-blend