SplashForm
Represents a splash screen form that can display with transparent background and animated show/hide effects.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SplashForm : Form, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlContainerControlFormSplashForm...
Implements:
Inherited Members
Constructors
Initializes a new instance of the SplashForm class.
public SplashForm()
Properties
Gets or sets the background image displayed in the splash form. Setting this property also adjusts the form size to match the image size.
public override Image BackgroundImage { get; set; }
Overrides:
Configures the form as a layered window and removes the app-window extended style.
protected override CreateParams CreateParams { get; }
Overrides:
Methods
Hides the splash form with an animated fade-out effect.
public void AnimatedHide()
Decreases the layered window's opacity in steps, then hides the form.
protected virtual void AnimateFuncHide()
Increases the layered window's opacity in steps until it is fully opaque.
protected virtual void AnimateFuncShow()
Clean up any resources being used.
protected override void Dispose(bool disposing)
true if managed resources should be disposed; otherwise, false.
Overrides:
Initializes the layered window and starts its fade-in after the form loads.
Validates the background image, initializes the native layered window, and starts the show animation.
protected virtual void SetupLayeredWindow()
The background image is null.
ExceptionThe background image is not a Bitmap in 24-bit RGB or 32-bit ARGB format.
Draws the background bitmap into the layered window using the specified whole-window opacity.
protected virtual void UpdateLayeredWindow(byte alpha)
The constant opacity from 0 (transparent) through 255 (opaque).