FadeTransition problem

4 posts, 0 answers
  1. Gunnar
    Gunnar avatar
    28 posts
    Member since:
    Aug 2009

    Posted 28 May 2011 Link to this post

    I have a Grid in a TransitionControl and I want it to fade in or out depending on the Visibility property.

    if (this.LicenseDetailsGrid.Visibility == Visibility.Collapsed) this.LicenseDetailsGrid.Visibility = Visibility.Visible;
    else this.LicenseDetailsGrid.Visibility = Visibility.Collapsed;

    <telerik:RadTransitionControl x:Name="LicenseDetailsTransitionControl"  Grid.Row="4" Margin="3" Duration="00:00:01.00"  Padding="5" >
            <effects:FadeTransition  />
            <Grid  x:Name="LicenseDetailsGrid" Height="400" >

    When I set Visibility = Visible, the Grid fades in nice and smooth as it should do.
    When I set Visibility = Collapsed, the whole Grid first seems to be squeezed into one row and then it fades out.


    (using v 2011.1.419.1040 Trial)
  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 01 Jun 2011 Link to this post

    Hi Gunnar,

    I can suggest you do the following:
    - instead of a Grid as a content of the TransitionControl you can use UserControl and set its Content property to be the Grid.
    - instead using the Visibility property, I can suggest you to set the Content of the UserControl to null.

    Hope this makes sense. Please let us know if that worked for you.

    Kind regards,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mrn
    Mrn avatar
    29 posts
    Member since:
    Apr 2011

    Posted 27 Sep 2011 Link to this post

    I found the same problem and I was not able to solve it either by setting a UserControl as the root content for the transition as you suggested...
  4. Konstantina
    Konstantina avatar
    2332 posts

    Posted 28 Sep 2011 Link to this post

    Hello Mrn,

    Could you please give us some more details what exactly is going wrong? Also, are you using the latest available version? If not, which one are you using? Would it be possible to send us some code snippets or ideally a sample project and more details what exactly you are trying to achieve. In that way we will be able to provide you with the best solution for your case.

    Looking forward to your reply.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top