0
我有文本块这样WPF,TextBlock的与RotateTransform和一个LinearGradientBrush
<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>
它不会提供任何文本。如果我删除变换或刷,那么它工作正常,但两者都不会呈现任何东西。
它适合我。 – Johnbot
在运行时适合我,在设计时没有看到任何东西,您是否真的尝试过调试? – JMK
我在VS2010中有设计时问题,VS2012在设计时工作。 –