Smooth text animation (Marquee) using WPF

Posted by Goran on Stack Overflow See other posts from Stack Overflow or by Goran
Published on 2010-06-09T00:09:51Z Indexed on 2010/06/09 0:22 UTC
Read the original article Hit count: 1354

Filed under:
|
|

Trying to build a marquee control with smooth text animation. Current efforts include:

  • Using translate transform
  • Using animation on Canvas dependency properties (Left, Right)
  • Using animation on custom dependency property (Point) and using drawing visuals (formattedtext)
  • Using CompositionTarget.Rendering

But the animation is still choppy and resource intensive.

Checklist:

  • Confirmed no software rendering is taking place (ms performance tool and checking RenderCapability.Tier)
  • Calling freeze on any imaginable object
  • Running app on dual core machine with decent graphic card (NVidia 9600)
  • Disabled any bitmap effect and transparency
  • Checked all marquee controls out there (same issues)

Any ideas (or better yet code example)?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about animation