1
我正在尝试为文本块中的文本触击的线条生成动画。 这是我到目前为止。如何为TextBlock上的TextDecoration Strikethrougn设置动画效果?
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<Style x:Key="TextBlockEliminated">
<Setter Property="Control.FontSize" Value="18"/>
<Setter Property="Control.FontWeight" Value="Bold"/>
<Setter Property="Control.Foreground" Value="Gray"/>
<Setter Property="TextBlock.TextDecorations">
<Setter.Value>
<TextDecorationCollection>
<TextDecoration x:Name="animatedStrikeThrough" Location="Strikethrough"/>
</TextDecorationCollection>
</Setter.Value>
</Setter>
</Style>
</Page.Resources>
<Grid>
<TextBlock Style="{StaticResource TextBlockEliminated}">Some Text
</TextBlock>
</Grid>
通知我不APPY一个DoubleAnimation是任何地方那是因为我无法弄清楚如何将其应用到TextDecoration PinOffset。