|
-
June 10th, 2008, 03:27 AM
#1
WPF , render Transform, Anyone?
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.
Code:
<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>
-
June 10th, 2008, 09:30 AM
#2
Re: WPF , render Transform, Anyone?
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.
-
June 11th, 2008, 02:48 AM
#3
Re: WPF , render Transform, Anyone?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|