资源简介
自定义控件继承自Panel,实现带阴影的立体效果
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;
namespace ShadowPanel
{
public class ShadowPanel : Panel
{
private Color _panelColor;
public Color PanelColor
{
get { return _panelColor; }
set { _panelColor = value; }
}
private Color _borderColor;
public Color BorderColor
{
get { return _borderColor; }
set { _borderColor = value; }
}
private int shadowSize = 5;
private int shadowMargin = 2;
// static for good perfomance
static Image shadowDownRight = new Bitmap(typeof(ShadowPanel) “Images.tshadowdownright.png“);
static Image shadowDownLeft = new Bitmap(typeof(ShadowPanel) “Images.tshadowdownleft.png“);
static Image shadowDown = new Bitmap(typeof(ShadowPanel) “Images.tshadowdown.pn
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2007-07-01 00:17 ShadowPanel\
目录 0 2007-07-01 00:16 ShadowPanel\ShadowPanel\
目录 0 2007-06-16 23:04 ShadowPanel\ShadowPanel\bin\
目录 0 2007-06-11 13:07 ShadowPanel\ShadowPanel\bin\Debug\
文件 20480 2007-07-01 00:16 ShadowPanel\ShadowPanel\bin\Debug\ShadowPanel.dll
文件 15872 2007-07-01 00:16 ShadowPanel\ShadowPanel\bin\Debug\ShadowPanel.pdb
目录 0 2007-06-16 23:04 ShadowPanel\ShadowPanel\bin\Release\
文件 20480 2007-07-01 00:16 ShadowPanel\ShadowPanel\bin\Release\ShadowPanel.dll
文件 13824 2007-07-01 00:16 ShadowPanel\ShadowPanel\bin\Release\ShadowPanel.pdb
目录 0 2007-06-11 13:06 ShadowPanel\ShadowPanel\Images\
文件 201 2007-06-11 13:06 ShadowPanel\ShadowPanel\Images\tshadowdown.png
文件 219 2007-06-11 13:06 ShadowPanel\ShadowPanel\Images\tshadowdownleft.png
文件 230 2007-06-11 13:06 ShadowPanel\ShadowPanel\Images\tshadowdownright.png
文件 202 2007-06-11 13:06 ShadowPanel\ShadowPanel\Images\tshadowright.png
文件 223 2007-06-11 13:06 ShadowPanel\ShadowPanel\Images\tshadowtopright.png
目录 0 2007-06-16 23:04 ShadowPanel\ShadowPanel\obj\
目录 0 2007-07-01 00:16 ShadowPanel\ShadowPanel\obj\Debug\
目录 0 2007-06-11 13:31 ShadowPanel\ShadowPanel\obj\Debug\Refactor\
文件 16384 2007-06-11 13:31 ShadowPanel\ShadowPanel\obj\Debug\Refactor\ShadowPanel.dll
文件 20480 2007-07-01 00:16 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.dll
文件 201 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.Images.tshadowdown.png
文件 219 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.Images.tshadowdownleft.png
文件 230 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.Images.tshadowdownright.png
文件 202 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.Images.tshadowright.png
文件 223 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.Images.tshadowtopright.png
文件 15872 2007-07-01 00:16 ShadowPanel\ShadowPanel\obj\Debug\ShadowPanel.pdb
目录 0 2007-06-11 12:58 ShadowPanel\ShadowPanel\obj\Debug\TempPE\
目录 0 2007-07-01 00:16 ShadowPanel\ShadowPanel\obj\Release\
文件 20480 2007-07-01 00:16 ShadowPanel\ShadowPanel\obj\Release\ShadowPanel.dll
文件 201 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Release\ShadowPanel.Images.tshadowdown.png
文件 219 2007-06-11 13:06 ShadowPanel\ShadowPanel\obj\Release\ShadowPanel.Images.tshadowdownleft.png
............此处省略56个文件信息
- 上一篇:基于8253.8255.8259交通灯
- 下一篇:AO2011版系统文件
相关资源
- 网络是怎样连接的_户根勤.pdf
- tesseract最新最全资料.rar
- 大话数据结构.epub
- iBATIS实战.pdf
- zw_new_smile-7110337-ImageAnimationTest.zip
- zw_jhn199388-9911706-基于51单片机都_自动
- zw_fan7983377-9600053-RecyclerViewDemo.zip
- zw_CHINA__.zip
- 我的第一本算法书+算法图解.zip
- 数学物理方法_德顾樵编著_2012.01_545页
- zw_WKTConvert.zip
- tdxw.exe
- zw_LabVIEW_8.20程序设计从入门到精通.
- zw_20170105220330215.zip
- unlocker-master最新版.rar
- Nginx核心知识100讲全套课件.zip
- navicat.11.2.16.premium_cs_x64破解版.zip
- 凸优化_Boyd_王书宁译.rar
- 云盘.rar
- Xshell5.exe
- 20170121135652618.rar
- DiskGenius4.7.0专业版.rar
- AlphaControlsv11.16StableFullSource(D5和D10
- 雅奇880官方开源赠品30多个雅奇4.rar
- 2009_LabVIEW编程样式_清晰版.pdf
- tiger_newhu5.99.24.zip
- 大数据架构详解:从数据获取到深度
- 程序是怎样跑起来的_PDF电子书带书签
- MongodbSample.rar
- EtherCATSlaveStackCodeTool5.12.rar
评论
共有 条评论