This project is read-only.

Artefact Animator - Translate Transforms

Jun 1, 2010 at 10:18 PM

I just found out that animating an object's height / width / top / left property will render to the CPU, but all RenderTransforms and TranslateTransforms render to the GPU.

( I'm building apps for WindowsPhone7 and trying to optimize animations )

Is there an easy way to animate just the TranslateTransform X and Y properties?

I know that the object has to be in a Canvas to animate the top / left property, but can I have the object in a Grid and animate it's X and Y?

A code snippet would help.... the documentation isn't clear on how to do it.


Jun 1, 2010 at 10:48 PM

Yea, you can target CompositeTransform & RenderTransform. Check the Examples Page for the code snipets (for now) and/or use the current RenderTransform Shortcuts like "OffsetTo".


Jun 1, 2010 at 11:09 PM

OK that makes sense.... Thanks!

Apparently the built in scrollbar control renders every tick to the CPU while scrolling, which can cause a bad user experience... especially when other phones will have smooth scrolling as a standard.

So I'm using Artefact Animator to re-create a custom scroller that uses Translate X and Y to simulate smooth scrolling.