ClassRadLayeredWindow
Represents a Win2K+ layered window semantic, which allows for semi-transparent windows.
Definition
Namespace:Telerik.WinControls
Assembly:Telerik.WinControls.dll
Syntax:
public class RadLayeredWindow : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentControlRadLayeredWindow
Implements:
Inherited Members
Constructors
Properties
Alpha
Gets or sets the Alpha (transparency) value - [0, 1] - for the window.
BackgroundImage
Gets or sets the Image that represents the Layered window.
Declaration
public override Image BackgroundImage { get; set; }
Property Value
Overrides
BackgroundSvgImage
Gets or sets the RadSvgImage that represents the Layered window.
Declaration
public RadSvgImage BackgroundSvgImage { get; set; }
Property Value
Content
Gets the final Bitmap that represents the content of the Layered Window.
CreateParams
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Overrides
DesiredSize
Gets or sets the size of the window.
DisplaySize
Gets the current size used by the window to visualize itself.
HitTestable
Determines whether the Control is visible for mouse input.
RecreateHandleOnSizeChanged
Determines whether window's handle will be re-created upon a Size change. If the window is large - e.g. 800*600 pixels, applying new size may cause flicker due to the nature of Layered Windows semantic.
Declaration
public bool RecreateHandleOnSizeChanged { get; set; }
Property Value
TopMost
Determines whether the window is TopMost (above all floating windows).
Methods
BringToFront(bool)
Brings the window on top of the z-order.
OnPaint(PaintEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
e
Overrides
OnPaintBackground(PaintEventArgs)
Declaration
protected override void OnPaintBackground(PaintEventArgs pevent)
Parameters
pevent
Overrides
PaintWindow(Graphics, Bitmap)
Performs painting of the window. Default implementation simply paints the BackgroundImage (if any).
ResumeUpdates()
Resumes previously suspended updates and forces Layered update.
Declaration
public void ResumeUpdates()
ResumeUpdates(bool)
Resumes previously suspended updates. Optionally preforms Layered update.
SendToBack(bool)
Sends the window to back of the z-order.
ShowWindow(Point)
Displays the window to user using the specified location and current size.
Declaration
public virtual void ShowWindow(Point screenLocation)
Parameters
screenLocation
SuspendUpdates()
Suspends any Layered-related updates for the window. Useful for multiple properties set-up without sequential update for each property change.
Declaration
public void SuspendUpdates()
UpdateWindow()
Updates the layered window.
Declaration
protected void UpdateWindow()
WndProc(ref Message)
Provides special handling for the WM_MOUSEACTIVATE, WM_PAINT and WM_NCHITTEST messages.
Declaration
protected override void WndProc(ref Message m)
Parameters
m
Overrides