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

FadeTransition problem

3 Answers 146 Views
TransitionControl
This is a migrated thread and some comments may be shown as answers.
Gunnar
Top achievements
Rank 1
Gunnar asked on 28 May 2011, 09:22 AM
I have a Grid in a TransitionControl and I want it to fade in or out depending on the Visibility property.

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

<telerik:RadTransitionControl x:Name="LicenseDetailsTransitionControl"  Grid.Row="4" Margin="3" Duration="00:00:01.00"  Padding="5" >
    <telerik:RadTransitionControl.Transition>
        <effects:FadeTransition  />
    </telerik:RadTransitionControl.Transition>
    <telerik:RadTransitionControl.Content>
        <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.

Why?

(using v 2011.1.419.1040 Trial)

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 01 Jun 2011, 01:11 PM
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,
Konstantina
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
0
Mrn
Top achievements
Rank 1
answered on 27 Sep 2011, 09:28 AM
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...
0
Konstantina
Telerik team
answered on 28 Sep 2011, 12:27 PM
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.

Greetings,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
TransitionControl
Asked by
Gunnar
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Mrn
Top achievements
Rank 1
Share this question
or