Template content, easing and transition

1 posts, 0 answers
  1. Mark
    Mark avatar
    50 posts
    Member since:
    Dec 2010

    Posted 17 Dec 2012 Link to this post

    I would like to reduce the code footprint by creating a template so it can all be declared in the RadTransitionControl. I have snaffled this from an existing thread.

    <telerik:RadTransitionControl Grid.Row="16" Grid.Column="0" x:Name="tcText1">
                        <telerik:RadTransitionControl.ContentTemplate>
                            <DataTemplate>
                                <TextBlock Text="{Binding}" FontSize="14" />
                            </DataTemplate>
                        </telerik:RadTransitionControl.ContentTemplate>
     
                        <telerik:RadTransitionControl.Easing>
                            <BackEase />
                        </telerik:RadTransitionControl.Easing>
     
                        <telerik:RadTransitionControl.Transition>
                            <telerik:FadeTransition />
                        </telerik:RadTransitionControl.Transition>
                    </telerik:RadTransitionControl>

    Is it possible to put the Content, easing and transition into a single template or style, I could not work out which to use ControlTemplate, Style, DataTemplate etc.

    I have no trouble handling the timing in the ViewModel, is there a method to only do the fade 1 time (other than code in the VM) and have the content show without fade after the initial load. This is the Home page and will be returned to many times and I don't want the repeated fade to distract/annoy the user.

Back to Top