1
私は、テキストブロック内のテキストを叩く行をアニメーション化しようとしています。 ここまで私がこれまで持っていたことがあります。私はTextDecoration PinOffsetにそれを適用する方法を見つけ出すカントので、私はDoubleAnimationをAPPYません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>
通知はどこでもthatsの。