65.9K
CodeProject is changing. Read more.
Home

A Reflective and Translucent Glass Panel

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.50/5 (12 votes)

Oct 1, 2008

CPOL
viewsIcon

84549

downloadIcon

6321

Component derived from Panel that acts like a window (glass)

Introduction

This component is the logical suite of the AlphaGradientPanel published here on CodeProject. It replaces the original System.Windows.Form.Panel by a nifty glassy one.

Background

No idea, I wanted to have glass.

Using the Code

The panel has three main properties. 

  • The glass color (GlassColor) which defines the base tint of the glass panel.
  • The glass opacity (Opacity) which defines the opacity of the panel.
  • Whether the mouse cursor is reflected on the panel (MouseReflection).

It is mainly used like any other panel would be used.

Points of Interest

It's far from perfect and you are to have a good graphic card to use it, but the effect is kind of cool.

History 

  • v. 1.0 - October 2008