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>
공지 사항은 어디 이잖아.