CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2002
    Posts
    788

    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>

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  3. #3
    Join Date
    Jun 2008
    Posts
    154

    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
  •  





Click Here to Expand Forum to Full Width

Featured