layeredSkin 程序
LayeredSkin 皮肤库的示例程序,后续再没有更新了,转为商业项目了。LayeredSkin 有很多好用酷炫的控件和效果。
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2966 2014-11-09 12:07 layeredSkinDemoAlbumForm.cs
文件 11900 2014-11-09 12:03 layeredSkinDemoAlbumForm.designer.cs
文件 16056 2014-11-09 12:03 layeredSkinDemoAlbumForm.resx
文件 19791 2010-04-10 22:26 layeredSkinDemoinDebugImages1.gif
文件 7097 2014-09-10 10:34 layeredSkinDemoinDebugImages1_100.gif
文件 33199 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin1.png
文件 34874 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin10.png
文件 35758 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin100.png
文件 36034 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin101.png
文件 34917 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin102.png
文件 38002 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin103.png
文件 33734 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin104.png
文件 32919 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin105.png
文件 35939 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin106.png
文件 32860 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin107.png
文件 35178 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin108.png
文件 37088 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin109.png
文件 35965 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin11.png
文件 33427 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin110.png
文件 38302 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin111.png
文件 38201 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin112.png
文件 39021 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin113.png
文件 39009 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin114.png
文件 36862 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin115.png
文件 36183 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin116.png
文件 38532 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin117.png
文件 35364 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin118.png
文件 38773 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin119.png
文件 36551 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin12.png
文件 37474 2012-11-19 18:30 layeredSkinDemoinDebugImageschuyin120.png
............此处省略219个文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using layeredSkin.Forms;
using layeredSkin.DirectUI;
namespace test
{
public partial class AlbumForm : layeredForm
{
public AlbumForm()
{
InitializeComponent();
}
Image pic = Image.FromFile(“Images\1.gif“);
private void AlbumForm_Load(object sender EventArgs e)
{
for (int i = 0; i < 100; i++)//添加列表项目
{
DuiPictureBox picBox = new DuiPictureBox();//图片容器
picBox.Size = new Size(120 120);
//picBox.BackColor = Color.Red;
picBox.Location = new Point(5 5);
picBox.MouseEnter += picBox_MouseEnter;//绑定事件实现鼠标移入移出的边框变化效果
picBox.MouseLeave += picBox_MouseLeave;
picBox.Borders.BottomWidth = 3;
picBox.Borders.LeftWidth = 3;
picBox.Borders.RightWidth = 3;
picBox.Borders.TopWidth = 3;
picBox.Image = pic;//设置图片
picBox.SizeMode = PictureBoxSizeMode.StretchImage;
DuibaseControl item = new DuibaseControl();//列表项目
item.Size = new Size(130 130);
item.Top = 10;
item.Controls.Add(picBox);
layeredListBox1.Items.Add(item);
}
}
void picBox_MouseLeave(object sender EventArgs e)
{
DuibaseControl control = (DuibaseControl)sender;
control.Borders.BottomColor = Color.Empty;
control.Borders.LeftColor = Color.Empty;
control.Borders.RightColor = Color.Empty;
control.Borders.TopColor = Color.Empty;
}
void picBox_MouseEnter(object sender EventArgs e)
{
DuibaseControl control = (DuibaseControl)sender;
control.Borders.BottomColor = Color.Blue;
control.Borders.LeftColor = Color.Blue;
control.Borders.RightColor = Color.Blue;
control.Borders.TopColor = Color.Blue;
}
private void layeredButton1_Click(object sender EventArgs e)
{
layeredListBox1.DoSmoothScroll(-40);
}
private void layeredButton2_Click(object sender EventArgs e)
{
layeredListBox1.DoSmoothScroll(40);
}
private void layeredButton3_Click(object sender EventArgs e)
{
this.Close();
}
private void layeredListBox1_ItemClick(object sender layeredSkin.Controls.ItemClickEventArgs e)
{
MessageBox.Show(“项目索引为:“ + e.Index.ToString() + “的项目被点击“);
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2966 2014-11-09 12:07 la
文件 11900 2014-11-09 12:03 la
文件 16056 2014-11-09 12:03 la
文件 19791 2010-04-10 22:26 la
文件 7097 2014-09-10 10:34 la
文件 33199 2012-11-19 18:30 la
文件 34874 2012-11-19 18:30 la
文件 35758 2012-11-19 18:30 la
文件 36034 2012-11-19 18:30 la
文件 34917 2012-11-19 18:30 la
文件 38002 2012-11-19 18:30 la
文件 33734 2012-11-19 18:30 la
文件 32919 2012-11-19 18:30 la
文件 35939 2012-11-19 18:30 la
文件 32860 2012-11-19 18:30 la
文件 35178 2012-11-19 18:30 la
文件 37088 2012-11-19 18:30 la
文件 35965 2012-11-19 18:30 la
文件 33427 2012-11-19 18:30 la
文件 38302 2012-11-19 18:30 la
文件 38201 2012-11-19 18:30 la
文件 39021 2012-11-19 18:30 la
文件 39009 2012-11-19 18:30 la
文件 36862 2012-11-19 18:30 la
文件 36183 2012-11-19 18:30 la
文件 38532 2012-11-19 18:30 la
文件 35364 2012-11-19 18:30 la
文件 38773 2012-11-19 18:30 la
文件 36551 2012-11-19 18:30 la
文件 37474 2012-11-19 18:30 la
............此处省略219个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)