skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class RadLayeredWindow

Represents a Win2K+ layered window semantic, which allows for semi-transparent windows.

Inheritance
System.Object
RadLayeredWindow
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll

Syntax

public class RadLayeredWindow : Control

Constructors

RadLayeredWindow()

Default constructor.

Declaration
public RadLayeredWindow()

Properties

Alpha

Gets or sets the Alpha (transparency) value - [0, 1] - for the window.

Declaration
public float Alpha { get; set; }
Property Value
System.Single

BackgroundImage

Gets or sets the Image that represents the Layered window.

Declaration
public override Image BackgroundImage { get; set; }
Property Value
System.Drawing.Image

BackgroundSvgImage

Gets or sets the RadSvgImage that represents the Layered window.

Declaration
public RadSvgImage BackgroundSvgImage { get; set; }
Property Value
RadSvgImage

Content

Gets the final Bitmap that represents the content of the Layered Window.

Declaration
protected Bitmap Content { get; }
Property Value
System.Drawing.Bitmap

CreateParams

Declaration
protected override CreateParams CreateParams { get; }
Property Value
System.Windows.Forms.CreateParams

DesiredSize

Gets or sets the size of the window.

Declaration
public Size DesiredSize { get; set; }
Property Value
System.Drawing.Size

DisplaySize

Gets the current size used by the window to visualize itself.

Declaration
public virtual Size DisplaySize { get; }
Property Value
System.Drawing.Size

HitTestable

Determines whether the Control is visible for mouse input.

Declaration
public bool HitTestable { get; set; }
Property Value
System.Boolean

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
System.Boolean

TopMost

Determines whether the window is TopMost (above all floating windows).

Declaration
public bool TopMost { get; set; }
Property Value
System.Boolean

Updated

Determines whether the window is updated (used UpdateLayeredWindow API).

Declaration
public bool Updated { get; protected set; }
Property Value
System.Boolean

Methods

BringToFront(Boolean)

Brings the window on top of the z-order.

Declaration
public void BringToFront(bool activate)
Parameters
System.Boolean activate

OnPaint(PaintEventArgs)

Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
System.Windows.Forms.PaintEventArgs e

OnPaintBackground(PaintEventArgs)

Declaration
protected override void OnPaintBackground(PaintEventArgs pevent)
Parameters
System.Windows.Forms.PaintEventArgs pevent

PaintWindow(Graphics, Bitmap)

Performs painting of the window. Default implementation simply paints the BackgroundImage (if any).

Declaration
protected virtual void PaintWindow(Graphics g, Bitmap graphicsBitmap)
Parameters
System.Drawing.Graphics g

The graphics to use.

System.Drawing.Bitmap graphicsBitmap

The off-screen bitmap instance the graphics is created from.

ResumeUpdates()

Resumes previously suspended updates and forces Layered update.

Declaration
public void ResumeUpdates()

ResumeUpdates(Boolean)

Resumes previously suspended updates. Optionally preforms Layered update.

Declaration
public void ResumeUpdates(bool update)
Parameters
System.Boolean update

SendToBack(Boolean)

Sends the window to back of the z-order.

Declaration
public void SendToBack(bool activate)
Parameters
System.Boolean activate

ShowWindow(Point)

Displays the window to user using the specified location and current size.

Declaration
public virtual void ShowWindow(Point screenLocation)
Parameters
System.Drawing.Point 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
System.Windows.Forms.Message m

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.