资源简介
C#圆形按钮,非常漂亮动态 Button,有源代码和例子,这是网上很少有的,兄弟们快下载呀!
代码片段和文件信息
using System;
using System.ComponentModel;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
using System.Windows.Forms;
namespace PulseButton
{
///
/// PulseButton control
/// By Niel M. Thomas 2009
///
public partial class PulseButton : Button
{
#region -- Members --
private readonly Timer pulseTimer;
private RectangleF[] pulses;
private RectangleF centerRect;
private Color[] pulseColors;
private int pulseWidth;
private bool mouseOver;
private bool pressed;
private float pulseSpeed;
public enum Shape
{
Round
Rectangle
}
#endregion
#region -- Properties --
///
/// Gets or sets the top button color.
///
/// The top button color.
[Browsable(true) DefaultValue(typeof(Color) “CornflowerBlue“)]
[Category(“Appearance“)]
public Color ButtonColorTop { get; set; }
///
/// Gets or sets the bottom button color.
///
/// The bottom button color.
[Browsable(true) DefaultValue(typeof(Color) “DodgerBlue“)]
[Category(“Appearance“)]
public Color ButtonColorBottom { get; set; }
///
/// Gets or sets the color of the pulse.
///
/// The color of the pulse.
[Browsable(true) DefaultValue(typeof(Color) “Black“)]
[Category(“Appearance“)]
public Color PulseColor { get; set; }
///
/// Gets or sets the type of the shape.
///
/// The type of the shape.
[Browsable(true) DefaultValue(typeof(Shape) “Round“)]
[Category(“Appearance“)]
public Shape ShapeType { get; set; }
///
/// Gets or sets the corner radius.
///
/// The corner radius.
[Browsable(true) DefaultValue(10)]
[Category(“Appearance“)]
public int CornerRadius { get; set; }
///
/// Gets or sets the color of the focus.
///
/// The color of the focus.
[Browsable(true) DefaultValue(typeof(Color) “Orange“)]
[Category(“Appearance“)]
public Color FocusColor { get; set; }
///
/// Gets or sets the foreground color of the control.
///
///
///
/// The foreground of the control. The default is the value of the property.
///
///
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-06-02 15:39 PulseButton\
目录 0 2016-06-02 15:38 PulseButton\Backup\
目录 0 2016-06-02 15:38 PulseButton\Backup\PulseButton\
文件 1422 2009-09-25 22:49 PulseButton\Backup\PulseButton.sln
目录 0 2016-06-02 15:38 PulseButton\Backup\PulseButtonTest\
文件 577 2009-10-08 20:43 PulseButton\Backup\PulseButtonTest\Form1.cs
文件 7622 2009-10-08 21:08 PulseButton\Backup\PulseButtonTest\Form1.Designer.cs
文件 5814 2009-10-08 20:43 PulseButton\Backup\PulseButtonTest\Form1.resx
文件 507 2009-09-25 22:27 PulseButton\Backup\PulseButtonTest\Program.cs
目录 0 2016-06-02 15:38 PulseButton\Backup\PulseButtonTest\Properties\
文件 1460 2009-09-25 22:27 PulseButton\Backup\PulseButtonTest\Properties\AssemblyInfo.cs
文件 3118 2009-10-03 20:52 PulseButton\Backup\PulseButtonTest\Properties\Resources.Designer.cs
文件 6209 2009-10-03 20:52 PulseButton\Backup\PulseButtonTest\Properties\Resources.resx
文件 1100 2009-09-25 22:27 PulseButton\Backup\PulseButtonTest\Properties\Settings.Designer.cs
文件 249 2009-09-25 22:27 PulseButton\Backup\PulseButtonTest\Properties\Settings.settings
文件 4080 2009-10-03 20:59 PulseButton\Backup\PulseButtonTest\PulseButtonTest.csproj
目录 0 2016-06-02 15:38 PulseButton\Backup\PulseButtonTest\Resources\
文件 2584 2009-10-03 20:52 PulseButton\Backup\PulseButtonTest\Resources\Symbol Plus.png
文件 800 2009-10-08 21:48 PulseButton\Backup\PulseButton\ClassDiagram1.cd
目录 0 2016-06-02 15:38 PulseButton\Backup\PulseButton\Properties\
文件 1452 2009-09-25 22:27 PulseButton\Backup\PulseButton\Properties\AssemblyInfo.cs
文件 20634 2009-10-10 10:55 PulseButton\Backup\PulseButton\PulseButton.cs
文件 2903 2009-10-05 20:37 PulseButton\Backup\PulseButton\PulseButton.csproj
文件 1065 2009-09-25 22:50 PulseButton\Backup\PulseButton\PulseButton.Designer.cs
目录 0 2016-06-02 15:39 PulseButton\PulseButton\
文件 1422 2016-06-02 15:39 PulseButton\PulseButton.sln
目录 0 2016-06-02 15:39 PulseButton\PulseButtonTest\
目录 0 2016-06-02 15:39 PulseButton\PulseButtonTest\bin\
目录 0 2016-06-02 15:42 PulseButton\PulseButtonTest\bin\Debug\
文件 13824 2016-06-02 15:40 PulseButton\PulseButtonTest\bin\Debug\PulseButton.dll
文件 26112 2016-06-02 15:40 PulseButton\PulseButtonTest\bin\Debug\PulseButton.pdb
............此处省略54个文件信息
- 上一篇:文本对比器C#版,两个文本框,会报告不同的地方在哪一行
- 下一篇:WPF流程图 开发
评论
共有 条评论