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

Transition distortion

1 Answer 57 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 29 Dec 2010, 05:20 PM

Dear Sir/Madam,

We are using the RadTransition control in conjunction with the Silverlight 4 Navigation framework to effect a fade transition whenever we navigate from one page to another in our application. Our issue is that when we navigate from one page (using the "mainframe.Navigate([uri])" syntax) to another of differing height, we get distortion in the fade transition.

Our code is as follows:

XAML:

<ControlTemplate x:Name="FrameTemplate1" TargetType="navigation:Frame">
            <telerik:RadTransitionControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" >
                <telerik:RadTransitionControl.Transition>
                    <telerikTransitions:FadeTransition />                       
                </telerik:RadTransitionControl.Transition>
            </telerik:RadTransitionControl>
        </ControlTemplate>

[...]

<navigation:Frame x:Name="mainFrame" 
                                  UriMapper="{StaticResource myMapper}"  
                                  Navigating="mainFrame_Navigating"
                                  Navigated="mainFrame_Navigated"
                                  VerticalContentAlignment="Top"
                                  Width="682"
                                  Template="{StaticResource FrameTemplate1}" />

The Silverlight ActiveX object on our initial host .aspx page has a height of 800 as does our initial xaml page, but our next page has a height of 4000. We've been able to change the size of the Silverlight control on the aspx page, using the Silverlight Javascript bridge. We can certainly change the height of the target page dynamically as well, but whether we change that target page's height in the "OnNavigatedTo" method in the target page itself or in the NavigationControl page the distortion still occurs.

Any thoughts on how to fix this issue?

Thanks,

Mark Paris
Goolara, LLC

 

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Jan 2011, 09:34 AM
Hi Mark,

We are aware of this problem with the TransitionControl. Unfortunately, this is a limitation of the control. We don't support changing size of the pages while the transition is happening. I would suggest you to use pages with one and same size. 

Kind regards,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
Navigation
Asked by
Mark
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or