TransitionControl (or TransitionPresenter?) in a Frame

2 posts, 0 answers
  1. Stefan
    Stefan avatar
    5 posts
    Member since:
    Jul 2010

    Posted 18 Aug 2017 Link to this post


    I'm trying to replace the ContentPresenter in a Frame with the TransitionControl as described here:

    If I follow this example, no content is displayed.

    I also tried using TransitionPresenter, which is better in that the content does show up, but there are no transition animations?

    I have successfully used a TransitionControl stand-alone, but I'm hoping to use the navigation features of Frame along with transition animations.

    What am I doing wrong?

    <Frame x:Name="NavFrame" NavigationUIVisibility="Visible" Margin="0,50,0,0">
            <ControlTemplate TargetType="{x:Type Frame}">
                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
                    <teleriktp:TransitionPresenter CurrentContent="{TemplateBinding Content}" Duration="0:0:3">
                            <telerikTransitions:WaveTransition />
  2. Martin Ivanov
    Martin Ivanov avatar
    2360 posts

    Posted 23 Aug 2017 Link to this post

    Hello Stefan,

    In order for the TransitionPresenter to execute its animation you need to set its Host property to a Panel element. In your case you can wrap the TransitionPresenter into a Grid element, set the Grid's x:Name and use ElementName binding to bind the transition control's Host to the Grid. For example:
    <Grid x:Name="hostPanel">
        <telerikTransitionControl:TransitionPresenter CurrentContent="{TemplateBinding Content}" Duration="0:0:3" Host="{Binding ElementName=hostPanel}">
                <telerikTransitions:WaveTransition />

    I also tested your scenario with the RadTransitionControl and it is displayed properly. You can check this in the attached project.

    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top