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

Disabling the Show Animation for RadWindow in Q2

6 Answers 135 Views
Window
This is a migrated thread and some comments may be shown as answers.
Neil
Top achievements
Rank 1
Neil asked on 25 Oct 2011, 05:32 PM
I'm trying to disable the slide-in animation for the RadWindow in Telerik Q211. Setting AnimationSelector to null or an empty animation selector has no effect. Setting IsAnimationEnabled to false has no effect. The animation is too slow on slow machines, so we really need to disable it. Here is our style - I know its correctly applied as it has a lovely HotPink background.

<Style TargetType="telerikNavigation:RadWindow" x:Key="RadWindowStyle">
      <Setter Property="IsRestricted" Value="true"/>
      <Setter Property="IsTabStop" Value="false" />
      <Setter Property="Background" Value="HotPink" />
      <Setter Property="BorderBrush" Value="{StaticResource WindowOuterBorder}" />
      <Setter Property="BorderBackground" Value="{StaticResource WindowBorderBackground}" />
      <Setter Property="ModalBackground" Value="{StaticResource WindowModalBackground}" />
      <Setter Property="BorderThickness" Value="5 0 5 5" />
      <Setter Property="MinHeight" Value="26" />
      <Setter Property="MinWidth" Value="100" />
      <Setter Property="HorizontalContentAlignment" Value="Stretch" />
      <Setter Property="VerticalContentAlignment" Value="Stretch" />
      <Setter Property="Header" Value="RadWindow" />
      <Setter Property="HeaderTemplate" Value="{StaticResource HeaderTemplate}"/>
      <Setter Property="WindowStartupLocation" Value="CenterOwner" />
      <Setter Property="WindowState" Value="Normal" />
      <Setter Property="Template" Value="{StaticResource RadWindowTemplate}" />
      <Setter Property="TabNavigation" Value="Cycle" />
      <Setter Property="animation:AnimationManager.IsAnimationEnabled" Value="False"/>
      <Setter Property="animation:AnimationManager.AnimationSelector" Value="{x:Null}"/>
    </Style>

6 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 26 Oct 2011, 09:18 AM
Hi Neil,

The RadWindow control doesn't have a slide-in animation, but a fade-in animation. Setting the AnimationSelector to null should stop this animation. Could you please share some more details on this matter - a video that shows this slide-in animation would help us a lot.

All the best,
Miroslav Nedyalkov
the Telerik team

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

0
Neil
Top achievements
Rank 1
answered on 26 Oct 2011, 10:13 AM
I've attached a project http://www.mediafire.com/file/t7w1aalacb7kpay
 which shows the slide in behaviour.


I've used the Window Styles from our real application. 


To simulate other activity (to slow down the animation) I spawn 16 threads that sit and do something intensive but boring in the background.


The background for the app is a giant button - Click it and you should see the animation in (over 2-3 frames usually). You might not see it every time, so you may need to repeat to see the animation.

Any information would be very valuable.
0
Miroslav Nedyalkov
Telerik team
answered on 26 Oct 2011, 12:00 PM
Hello Neil,

What you are observing is not an animation, but the window is changing its size as the image is loaded after the RadWindow is shown as it needs some time to download. To prevent this behavior you need to set Width and Height either to the Image or to the RadWindow control.

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

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

0
Neil
Top achievements
Rank 1
answered on 26 Oct 2011, 12:07 PM
The image was purely for something visual to show in the window. The same thing occurs if I have an empty Border (Fixed size) in there. 

Replace the <Image> with

   <Border Width="300" Height="300" Background="HotPink" BorderBrush="Purple" BorderThickness="4"/>

And see the same thing. 
0
Miroslav Nedyalkov
Telerik team
answered on 27 Oct 2011, 08:18 AM
Hello Neil,

There was a visual glitch in the RadWindow control related to the WindowStartupLocation property - the was centered incorrectly and centered once again later. This might look an animation if the machine is slow or loaded. This problem was fixed in the latest internal build, but wasn't included in the 2011 Q3 beta version. Could you please try either the latest internal build or to set the WindowStartupLocation property to Manual and tell us does this problem still exist?

Best wishes,
Miroslav Nedyalkov
the Telerik team

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

0
Neil
Top achievements
Rank 1
answered on 27 Oct 2011, 09:13 AM
Unfortunately we've tried the Q3 release and we are due to release soon and had many issues with it which we couldn't track down in time for release. We will try again after we've released I suppose.
Tags
Window
Asked by
Neil
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Neil
Top achievements
Rank 1
Share this question
or