2

I have a storyboard with one DoubleAnimation this animates the opacity from 1 to 0 in one second:

<BeginStoryboard>
    <Storyboard>
        <DoubleAnimation Storyboard.TargetName="NotificationStackPanel"
            Storyboard.TargetProperty="Opacity"
            From="1"
            To="0"
            Duration="0:0:1"/>
    </Storyboard>
</BeginStoryboard>

The fade-out animation is pretty quick, and that's the purpose. But how can I make an animation to show the control for n seconds then start this fade-out animation?

I tried by making a new DoubleAnimation on top of the current one, with values From="1" and To="1" and a Duration="5", but that did seems to work. Any ideas?

Tobias Moe Thorstensen
  • 8,861
  • 16
  • 75
  • 143

1 Answers1

3

Simply set the DoubleAnimation BeginTime property to the value you need.

Eli Arbel
  • 22,391
  • 3
  • 45
  • 71