Silverlight 3 runtime breaks animation

5 posts, 0 answers
  1. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 10 Jul 2009 Link to this post

    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
  2. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 10 Jul 2009 Link to this post

    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
  3. DevCraft banner
  4. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 14 Jul 2009 Link to this post

    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.
  5. Nick Busby
    Nick Busby avatar
    4 posts
    Member since:
    Jul 2009

    Posted 09 Sep 2009 Link to this post

    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?
  6. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 14 Sep 2009 Link to this post

    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.
Back to Top
DevCraft banner