Animations
RadSplashScreen provides two built-in animations - one for opening and one for closing of the screen.
The default animations are fade-in and fade-out. To change them, set the ShowAnimation and HideAnimation static properties of the RadSplashScreenManager class.
You can set the properties to any animation object that derives from RadAnimation.
Example 1: Replacing the default show and hide animations
RadSplashScreenManager.ShowAnimation = new ScaleAnimation() { MinScale = 0.1, MaxScale = 0.9, Duration = TimeSpan.FromSeconds(2) };
RadSplashScreenManager.HideAnimation = new ScaleAnimation() { MinScale = 0.9, MaxScale = 0.1, Duration = TimeSpan.FromSeconds(2) };
if (!RadSplashScreenManager.IsSplashScreenActive)
{
RadSplashScreenManager.Show();
}
Disable Animations
To disable the animations, set the corresponding property (ShowAnimation or HideAnimation) to null.
Example 2: Disabling animations
RadSplashScreenManager.ShowAnimation = null;
RadSplashScreenManager.HideAnimation = null;
if (!RadSplashScreenManager.IsSplashScreenActive)
{
RadSplashScreenManager.Show();
}
Change Animations Speed
To change the speed of the show and hide animations, set the SpeedRatio property of the RadAnimation object.
Example 3: Changing the speed of the animations
RadSplashScreenManager.ShowAnimation = new FadeAnimation { SpeedRatio = 0.2d };
RadSplashScreenManager.HideAnimation = new FadeAnimation { SpeedRatio = 0.8d };
if (!RadSplashScreenManager.IsSplashScreenActive)
{
RadSplashScreenManager.Show();
}