Wpf,fontstretch属性的双重动画

时间:2018-05-28 18:04:02

标签: c# wpf animation stretch doubleanimation

如何制作更改FontStretch的动画?这就是我尝试过的:

<Style TargetType="TextBlock" x:Key="TextBlockStyle">
  <Style.Triggers>
    <EventTrigger RoutedEvent="Button.MouseEnter">
      <EventTrigger.Actions>
        <BeginStoryboard>
          <Storyboard>
            <DoubleAnimation Storyboard.TargetProperty="FontStretch" To="UltraCondensed" Duration="0:0:0.3"/>

0 个答案:

没有答案