On systems with the Silverlight 3 RTW runtime installed, the animation on my (Silverlight 2) radial gauges has stopped working. The needle moves directly to the new position. Strangely, my linear gauges are still animated. Here is my code, please could you tell me if I am doing something wrong?
My needle is declared thus, in an IndicatorList:
Steve
<Style x:Key="BlueNeedleStyle" TargetType="gauge:Needle"> |
<Setter Property="Location" Value="OverCenter" /> |
<Setter Property="RelativeHeight" Value="0.4" /> |
<Setter Property="RelativeShift" Value="1.4" /> |
<Setter Property="Template" Value="{StaticResource BlueNeedleTemplate}" /> |
<Setter Property="IsAnimated" Value="True" /> |
<Setter Property="Duration" Value="0:0:2" /> |
</Style> |
<ControlTemplate x:Key="BlueNeedleTemplate" TargetType="gauge:Needle"> |
<Grid x:Name="PART_Grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="*" /> |
<!-- Column 0 - tail --> |
<ColumnDefinition Width="*" /> |
<!-- Column 1 - pin point --> |
<ColumnDefinition Width="*" /> |
<!-- Column 2 - arrow --> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="*" /> |
</Grid.RowDefinitions> |
<Grid x:Name="PART_Shape" Grid.ColumnSpan="3" Margin="0"> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="50*" /> |
<ColumnDefinition Width="50*" /> |
</Grid.ColumnDefinitions> |
<Grid.RowDefinitions> |
<RowDefinition Height="0.4*" /> |
<RowDefinition Height="0.2*" /> |
<RowDefinition Height="0.4*" /> |
</Grid.RowDefinitions> |
<Path Grid.Row="1" |
Grid.Column="1" |
Stretch="Fill" |
Fill="{StaticResource Blue_Needle}" |
StrokeThickness="1" Data="M1,0.5 L0,1 L0,0"/> |
</Grid> |
<Grid Grid.Column="1"> |
<Grid.RowDefinitions> |
<RowDefinition Height="0.25*" /> |
<RowDefinition Height="0.5*" /> |
<RowDefinition Height="0.25*" /> |
</Grid.RowDefinitions> |
<Grid.ColumnDefinitions> |
<ColumnDefinition Width="0.25*" /> |
<ColumnDefinition Width="0.5*" /> |
<ColumnDefinition Width="0.25*" /> |
</Grid.ColumnDefinitions> |
<Ellipse Grid.Column="1" Grid.Row="1" Stretch="Uniform" |
Fill="{StaticResource BluePointerCap}"/> |
</Grid> |
</Grid> |
</ControlTemplate> |
My needle is declared thus, in an IndicatorList:
<gauge:Needle x:Name="gustneedle" Style="{StaticResource BlueNeedleStyle}"/> |
Steve