ElementFlow in UserControl eats CPU

Feb 12, 2009 at 4:58 PM

I am trying to use ElementFlow in a UserControl rather than directly on a Window.  When I run the app and change the selected index, I see the CPU usage spike during the animation.  On the other hand, when I use ElementFlow in a Window (like in the sample code), I barely see the CPU usage change.  I imagine that I am overlooking something, so forgive me if this is obvious to you.  Do you know how I can use ElementFlow in a UserControl without overloading the CPU?

Feb 16, 2009 at 1:56 PM
     My initial suspect would be the layout containers that are being used. Can you try putting the EF instance inside of a Grid and then nest the Grid inside of the UserControl...something like:

         <ElementFlow />

Let me know if that helps...

- Pavan