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

  • SEARCH
  • Home
  • 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 864607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:30:23+00:00 2026-05-15T09:30:23+00:00

WPF Windows-XP SP3 I’m having a problem with a simple WPF animation. I use

  • 0

WPF
Windows-XP SP3

I’m having a problem with a simple WPF animation.

I use the following Xaml code (in XamlPad and also in a WPF project):

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <Border Name="MyBorder" BorderThickness="10" BorderBrush="Blue" CornerRadius="10" Background="DarkRed" >
       <Rectangle Name="MyRectangle" Margin="10" StrokeDashArray="2.0,1.0" StrokeThickness="10" RadiusX="10" RadiusY="10" Stroke="Black" StrokeDashOffset="0">
           <Rectangle.Triggers>
               <EventTrigger RoutedEvent="Rectangle.Loaded">
                   <BeginStoryboard>
                       <Storyboard>
                           <DoubleAnimation Storyboard.TargetName="MyRectangle" Storyboard.TargetProperty="StrokeDashOffset" From="0.0" To="3.0" Duration="0:0:1" RepeatBehavior="Forever" Timeline.DesiredFrameRate="30" />
                       </Storyboard>
                   </BeginStoryboard>
               </EventTrigger>
           </Rectangle.Triggers>
       </Rectangle>
    </Border>
</Page>

It has the effect of causing the border to animate around the rectangle. After a fresh reboot of the machine, this animation is nice and smooth. However, I tend to leave my machine on all the time and after a period time elapses (I don’t know how long), the animation starts stuttering and becomes choppy.

I thought that it may be memory or resource issues, but after shutting down all other apps and any services that seem unnecessary, the stuttering still continues. However, after a system reboot, the animation is smooth again!

I get the same symptoms in a WPF app or in XamlPad. In the case of the app, it doesn’t seem to make any difference whether I run in the debugger or if I run the executable directly.

I applied the patch at this link: http://support.microsoft.com/kb/981741 and I thought that it had taken care of the issue, but it seems not to have.

I have seen some posts that might indicate that using transparency might affect animation, but as you can see, my xaml does not use transparency.

Can anyone give me some suggestions on how to determine what the problem is? Are there any WPF diagnostic tools that might help?

UPDATE: I have checked my video drivers and they are the latest version. (nVidia GeForce 8400 GS)

  • 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-15T09:30:24+00:00Added an answer on May 15, 2026 at 9:30 am

    After running your animation for a little over a day, I don’t see anything really awful going on, although the memory usage has gone up a little.

    What I ended up doing was running your example on XP SP3 in kaxaml, and then did some poor-man’s performance checking using perfmon.

    If you haven’t used perfmon before, just do Run -> perfmon from the start menu. It’ll likely come up with a few counters already in the list, but you can click each and delete them if you don’t want to monitor those values. I don’t think CPU utilization in your case is the problem, but you can keep it there just in case.

    Right click anywhere and choose “Add Counters”, then under “Performance object” select “.NET CLR Memory”. On the right, select the executable of interest (in my case, it’s “Kaxaml”). On the left side, select “# Bytes in all Heaps”. I would also change the sample rate to something larger, like 300 seconds, so you can get a better idea of rate of change over the time period you’re experiencing the slowdown.

    This might not help you find the slowdown, but it’s a reasonable first step. Maybe you should also download the trial of ANTS 5 profiler to see if it catches anything weird.

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

Sidebar

Ask A Question

Stats

  • Questions 430k
  • Answers 430k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Require java first. That's what makes the $CLASSPATH variable live.… May 15, 2026 at 1:51 pm
  • Editorial Team
    Editorial Team added an answer well, you do the cross product of v1 and v2… May 15, 2026 at 1:51 pm
  • Editorial Team
    Editorial Team added an answer In the GridView_RowDataBound event, get the cell you want to… May 15, 2026 at 1:51 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.