1

How to make an animation which changes FontStretch? This is what I've tried:

<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"/>
Imathie
  • 39
  • 2
  • 1
    FontStretch is not a double. Perhaps write a [custom animation](https://learn.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/custom-animations-overview). – Clemens May 28 '18 at 18:34
  • Or use a [Key-Frame animation](https://learn.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/key-frame-animations-overview). – Clemens May 29 '18 at 04:23

0 Answers0