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

Animation not working using RadTileAnimation

1 Answer 44 Views
Animation
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Deeps
Top achievements
Rank 1
Deeps asked on 10 Aug 2012, 09:06 AM
Hello,

I am trying some animation using RadTileAnimation class. I have added the references to Telerik dlls from
a sample project, and created some tiles :

xaml code :
<controls:Panorama HorizontalAlignment="Left" Name="panorama1" VerticalAlignment="Top"> 
   <controls:PanoramaItem header="item 1">
      <ListBox Margin=
"0,8,0,0" x:Name="CategoriesList"  SelectionChanged="CategoriesList_SelectionChanged">
         <ListBox.ItemTemplate>                           
             <DataTemplate>
                 <Grid Background=
"{Binding ColorBrush}"  Width="110" Height="110" Margin="6">
                     <Image Source=
"{Binding SmallIconUri}"  Stretch="None" VerticalAlignment="Top" HorizontalAlignment="Right"/>
             <TextBlock Text=
"{Binding Name}" 
VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center"   TextWrapping="Wrap" />
    <TextBlock Margin=
"-2,0,0,-9"  Text="{Binding Id}" FontSize="36"   VerticalAlignment="Bottom" HorizontalAlignment="Left"/>
 </Grid>
    </DataTemplate>
</ListBox.ItemTemplate>
<ListBox.ItemsPanel>
        <ItemsPanelTemplate>
<telerikPrimitives:RadWrapPanel/>
   </ItemsPanelTemplate>
</ListBox.ItemsPanel>
      </ListBox>
   </controls:PanoramaItem>
</controls:Panorama>


and the event handler for listbox selection change :
 
private void CategoriesList_SelectionChanged(object sender, SelectionChangedEventArgs e)<br>        {<br>            TileBG selectedCategory = CategoriesList.SelectedItem as TileBG;<br>            if (selectedCategory != null)<br>            {<br>                this.SetValue(RadTransitionControl.TransitionProperty, new RadTileTransition());<br>                this.SetValue(RadTileAnimation.ContainerToAnimateProperty, CategoriesList);<br>                NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative));<br>            }<br>        }

the animation works in that sample but it does nothing in my application.
Why is it so?
What am i missing ?

thanks.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 14 Aug 2012, 07:51 AM
Hi Deeps,

Thanks for writing.
You just need to use RadPhoneApplicationFrame instead of PhoneApplicationFrame since it enabled transitions between pages.

Greetings,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Animation
Asked by
Deeps
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or