Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

HELP: Rotate Line constant WPF

$
0
0
Hello,
I do not fail to rotate that line consistently,
ie not jumping out six in 6 degrees tick,
I need to rotate fluently,
Angle="{Binding SecAngle}" its update to second.
This is for Analog Clock.
I'm a beginner :)
Code:

    <Grid>
        <Line Stroke="Blue" StrokeThickness="10" VerticalAlignment="Center" HorizontalAlignment="Center" X1="5" X2="5" Y1="0" Y2="-175" RenderTransformOrigin="0.5,0.5">
            <Line.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="{Binding SecAngle}"/>
                </TransformGroup>
            </Line.RenderTransform>
        </Line>
  </Grid>

I do not want to use this From="0" To="360" Duration="0:1:0" I want to be in real time

Viewing all articles
Browse latest Browse all 256

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>