我有这样的文本块
<TextBlock Text="BETA"
FontSize="28"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Margin="0,17,420,271"
FontFamily="Georgia">
<TextBlock.RenderTransform>
<RotateTransform Angle="20" />
</TextBlock.RenderTransform>
<TextBlock.Foreground>
<LinearGradientBrush StartPoint="0,0"
EndPoint="0,24"
MappingMode="Absolute">
<GradientStopCollection>
<GradientStop Color="White"
Offset="0" />
<GradientStop Color="Orange"
Offset=".2" />
<GradientStop Color="DarkOrange"
Offset=".85" />
<GradientStop Color="White"
Offset="1" />
</GradientStopCollection>
</LinearGradientBrush>
</TextBlock.Foreground>
</TextBlock>它不会渲染任何文字。如果我移除转换或画笔,那么它工作的很好,但两者都不会渲染任何东西。
发布于 2013-12-17 11:43:51
删除绝对映射模式解决了我的问题?不知道为什么。
https://stackoverflow.com/questions/20632955
复制相似问题