locked
popup close transition RRS feed

  • Question

  • I'm using the popup theme transition on a popup and I'd like to use a reverse of the transition for the exit, but non of the transitions that I see seem to have that effect, at least, not when setting the IsOpen property to false. Is this something that I have to make and do myself?

    Michael DiLeo

    Saturday, April 12, 2014 2:51 PM

Answers

  • Hi mcd023,

    Apply a DoubleAnimation class on the target popup and animate the Opacity.

                <Storyboard x:Name="mystoryboard">
                    <DoubleAnimation From="1" To="0" Duration="00:00:3" Storyboard.TargetName="mygrid" Storyboard.TargetProperty="Opacity" />
                </Storyboard>
    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Monday, April 14, 2014 9:05 AM
    Moderator