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

Template content, easing and transition

0 Answers 16 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Dec 2012, 07:30 AM
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.

No answers yet. Maybe you can help?

Tags
TransitionControl
Asked by
Mark
Top achievements
Rank 1
Share this question
or