Skip to content

wenerme/winform.DropShadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winform.DropShadow

A winform DropShadow demo

First, the idea is come from here.

I go farther, write a workable class here.

Old DropShadow

Usage:

var f = new Dropshadow(this)
{
	BorderRadius = 40,
	ShadowColor = Color.Blue
};

f.RefreshShadow();

Then I rewrite the class,now it looks like this, a real DropShadow.

Source is here.

One thing you should know is this class not consider the border-radius(takes form css).

Main property is

  • ShadowColor
  • ShadowV
  • ShadowH
  • ShadowSpread
  • ShadowBlur

The property is same as css box-shadow, see here

These propertyies

  • ShadowSpread
  • ShadowBlur
  • ShadowColor

require you manual call RefreshShadow().

Go to the demo project

Releases

No releases published

Packages

No packages published

Languages