【问题标题】:Actual/Current Value of a DoubleAnimation in SilverlightSilverlight 中 DoubleAnimation 的实际/当前值
【发布时间】:2023-04-07 09:51:01
【问题描述】:
【问题讨论】:
标签:
c#
silverlight
animation
storyboard
【解决方案1】:
我能够通过以下方式获得 RenderTransform 的当前 Rotation 属性
var x = needle.RenderTransform.GetValue(CompositeTransform.RotationProperty);
所以我猜你只是用ScaleXProperty替换RotationProperty
其中针 =
<ed:RegularPolygon Name="needle" Height="81.5" InnerRadius="1" Canvas.Left="78" PointCount="3" Stretch="Fill" Stroke="Black" Canvas.Top="17.5" UseLayoutRounding="False" Width="15" Fill="#FFFFBB00" StrokeThickness="0" RenderTransformOrigin="0.5,0.838" >
<ed:RegularPolygon.RenderTransform>
<CompositeTransform Rotation="-140"/>
</ed:RegularPolygon.RenderTransform>
</ed:RegularPolygon>