This is a migrated thread and some comments may be shown as answers.

Silverlight 3 runtime breaks animation

4 Answers 51 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
SteveL
Top achievements
Rank 2
SteveL asked on 10 Jul 2009, 10:55 AM
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?

<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

4 Answers, 1 is accepted

Sort by
0
SteveL
Top achievements
Rank 2
answered on 10 Jul 2009, 07:12 PM
I have found the cause of this; I am changing the scale's Max value in the code behind. Once I do this, the animation stops working. I don't know why it's OK with the SL2 runtime, but not SL3...

Steve
0
Andrey
Telerik team
answered on 14 Jul 2009, 02:57 PM
Hi Steve,

Indeed we were able to reproduce a problem with dynamic changing of Min, Max, tick and label related properties that is specific to the Silverlight 3 runtime. The fix will be part of the official service pack release scheduled for the end of the month (also it will be included in the latest internal build that can be downloaded every Friday from the Client.Net account).


Greetings,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nick Busby
Top achievements
Rank 1
answered on 10 Sep 2009, 01:42 AM
Hello

I am running using the Silverlight 2 runtime and the gauge animation is breaking when i change the max.

I know i have the silverlight 3 runtime installed and but the actual xaml is compiled using silverlight 2.

Any help possibly?
0
Andrey
Telerik team
answered on 14 Sep 2009, 12:43 PM
Hi Nick,

This problem was specific for the Silverlight 3 runtime only. It doesn't matter which version of the Silverlight have been used when DLL was compiled. It concerns the runtime environment.
This problem was fixed since Q2 SP1.
Please check the version of dlls you use and/or try to download last internal build.

Kind regards,
Andrey Murzov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Gauge
Asked by
SteveL
Top achievements
Rank 2
Answers by
SteveL
Top achievements
Rank 2
Andrey
Telerik team
Nick Busby
Top achievements
Rank 1
Share this question
or