Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 991645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:08:34+00:00 2026-05-16T06:08:34+00:00

I am animating an Explorer-style interface, with a Navigator pane on the left and

  • 0

I am animating an Explorer-style interface, with a Navigator pane on the left and a Workspace on the right. The Navigator displays either a Note List or a Calendar–both are UserControls. Toggle buttons on the app’s Ribbon change between the two views. I am animating the change with a dissolve from the old UserControl to the new one.

The animation markup is pretty straightforward and is reproduced in full at the bottom of this post. I declare both user controls, the Calendar first, and then the NoteList, so that the NoteList covers and hides the Calendar. I dissolve from the NoteList to the Calendar by fading out the Note List–animating its Opacity property from 1 to 0, and I dissolve the other way by fading the Note List back in–animating the same property back from 0 to 1:

Dissolve from NoteList to Calendar:

<DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />

Dissolve from Calendar to NoteList:

<DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" />

The animation runs fine, but I discovered that setting the opacity to 0 simply made the Note List control transparent–it still covered the Calendar control, which meant I couldn’t click on the Calendar. So, I added a ScaleTransform to each storyboard to get the Note List out of the way when it wasn’t showing.

On a dissolve from the NoteList to the Calendar, I ScaleTransform the Note List to 0 after I fade it out to 0:

<DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
<DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)" To="0" Duration="0:0:0" />

On a dissolve from the Calendar to the NoteList, I ScaleTransform the Note List to 1 before I fade it in to 1:

<DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)" To="1" Duration="0:0:0" />
<DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" />

Here’s my problem: When I added the ScaleTransform, it broke the dissolve from the NoteList to the Calendar–the opacity of the Note List went to 0 immediately, instead of over the expected 0.5 second. But the dissolve back from the Calendar to the Note List still works fine–the opacity of the Note List animates from 0 to 1 over the expected 0.5 second.

I tested the problem by commenting out the ScaleTransform declarations, and the animation ran fine again. Uncomment the ScaleTransforms, and the animation is broken again when going from the Note List to the Calendar.

Can anyone suggest why adding the ScaleTransform would break this animation, and in only one direction? Thanks for your help!

—

Here is the animation markup in full:

<ribbon:RibbonToggleButton x:Name="NoteListViewButton" LargeImageSource="Images/ListViewLarge.png" SmallImageSource="Images/ListViewSmall.png" Label="Note List" Click="OnViewButtonClick">
    <ribbon:RibbonToggleButton.Triggers>
        <EventTrigger RoutedEvent="ribbon:RibbonToggleButton.Checked">
            <EventTrigger.Actions>
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)" To="1" Duration="0:0:0" />
                        <DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger.Actions>
        </EventTrigger>
    </ribbon:RibbonToggleButton.Triggers>
</ribbon:RibbonToggleButton>

<ribbon:RibbonToggleButton x:Name="CalendarViewButton" LargeImageSource="Images/CalendarViewLarge.png" SmallImageSource="Images/CalendarViewSmall.png" Label="Calendar" Click="OnViewButtonClick">
    <ribbon:RibbonToggleButton.Triggers>
        <EventTrigger RoutedEvent="ribbon:RibbonToggleButton.Checked">
            <EventTrigger.Actions>
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
                        <DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)" To="0" Duration="0:0:0" />
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger.Actions>
        </EventTrigger>
    </ribbon:RibbonToggleButton.Triggers>
</ribbon:RibbonToggleButton

>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:08:34+00:00Added an answer on May 16, 2026 at 6:08 am

    I found my answer. A Storyboard executes all animations simultaneously, so in the case of the dissolve from the NoteList to Calendar, the ScaleTransform was being set to 0 before the Opacity animation ever got a chance to run.

    The solution is to set the BeginTime property in the ScaleTransform for the dissolve from the NoteList to the Calendar, to give the Opacity animation time to run. As modified, it looks like this:

    <DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" />
    <DoubleAnimation Storyboard.TargetName="NoteListControl" Storyboard.TargetProperty="(RenderTransform).(ScaleTransform.ScaleY)" To="0" Duration="0:0:0" BeginTime="0:0:0.5" />
    

    Note the BeginTime property, set to “0:0:0.5”, at the end of the second animation declaration. And with that, the animation works!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I m un-animating a list using this code... function unanimate_li() { $li.filter(':last') .animate({ height:
I am animating 3 images (sprites) from off screen to the right into the
I am working on animating an image view and that moves to the right
I am animating an image rotation using a doubleanimation linked to a click event
I am animating in divs in a specific order. I start them all at
I'm animating these images being raised from the bottom of the screen and rotated.
I'm animating a model while moving around it with a camera. The animation is
If I have an animating circle as in this example , is there a
I am having trouble animating a custom UITableView section header. The goal was to
i am animating an UIImageView with an image of a circle that grows and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.