Click to See Complete Forum and Search --> : WPF , render Transform, Anyone?


mce
June 10th, 2008, 03:27 AM
I am using Blend to create a analog clock. However, i couldn't make the SecondHandle to move smoothly. Currently it is moving like jumping away every second. I want it to move smoothly across the time. Anyone knows how to achieve this?

I believe i need to do something on the rendering part. This is what i have now.


<Rectangle.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="{DynamicResource dSecondAsAngle}"/>
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</Rectangle.RenderTransform>

Arjay
June 10th, 2008, 09:30 AM
Mce, can you create a small sample project and zip it up?

I'd like to help, but I don't want to take the time to repro your problem - a project would help me out.

bixel
June 11th, 2008, 02:48 AM
my guess is that the jumping is occurring because dSecondAsAngle happens to create a larger angle than what you want. for a smoother angle maybe you need more angles per second or something like dMilliSecondAsAngle