完成除了Virtualpanel所有的demo
This commit is contained in:
Generated
+204
@@ -0,0 +1,204 @@
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
partial class Image3DDemo
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.stackPanel1 = new AntdUI.StackPanel();
|
||||
this.label4 = new AntdUI.Label();
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.flowPanel1 = new AntdUI.FlowPanel();
|
||||
this.image3D = new AntdUI.Image3D();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.flowPanel2 = new AntdUI.FlowPanel();
|
||||
this.image3D_shadow = new AntdUI.Image3D();
|
||||
this.image3D_V = new AntdUI.Image3D();
|
||||
this.image3D_shadowV = new AntdUI.Image3D();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.flowPanel1.SuspendLayout();
|
||||
this.flowPanel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// stackPanel1
|
||||
//
|
||||
this.stackPanel1.Controls.Add(this.flowPanel2);
|
||||
this.stackPanel1.Controls.Add(this.label3);
|
||||
this.stackPanel1.Controls.Add(this.flowPanel1);
|
||||
this.stackPanel1.Controls.Add(this.label4);
|
||||
this.stackPanel1.Controls.Add(this.divider1);
|
||||
this.stackPanel1.Controls.Add(this.label2);
|
||||
this.stackPanel1.Controls.Add(this.label1);
|
||||
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.stackPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.stackPanel1.Name = "stackPanel1";
|
||||
this.stackPanel1.Size = new System.Drawing.Size(700, 554);
|
||||
this.stackPanel1.TabIndex = 0;
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label4.Location = new System.Drawing.Point(3, 97);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(694, 24);
|
||||
this.label4.TabIndex = 61;
|
||||
this.label4.Text = "基本用法";
|
||||
//
|
||||
// divider1
|
||||
//
|
||||
this.divider1.Location = new System.Drawing.Point(3, 79);
|
||||
this.divider1.Name = "divider1";
|
||||
this.divider1.Size = new System.Drawing.Size(694, 12);
|
||||
this.divider1.TabIndex = 60;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label2.Location = new System.Drawing.Point(3, 49);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(694, 24);
|
||||
this.label2.TabIndex = 59;
|
||||
this.label2.Text = "显示3D图片";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.Location = new System.Drawing.Point(3, 3);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(694, 40);
|
||||
this.label1.TabIndex = 58;
|
||||
this.label1.Text = "Image3D 图片3D";
|
||||
//
|
||||
// flowPanel1
|
||||
//
|
||||
this.flowPanel1.Controls.Add(this.image3D_V);
|
||||
this.flowPanel1.Controls.Add(this.image3D);
|
||||
this.flowPanel1.Location = new System.Drawing.Point(3, 127);
|
||||
this.flowPanel1.Name = "flowPanel1";
|
||||
this.flowPanel1.Size = new System.Drawing.Size(694, 168);
|
||||
this.flowPanel1.TabIndex = 62;
|
||||
this.flowPanel1.Text = "flowPanel1";
|
||||
//
|
||||
// image3D
|
||||
//
|
||||
this.image3D.Image = global::AntdUIDemo.Properties.Resources.bg1;
|
||||
this.image3D.Location = new System.Drawing.Point(3, 3);
|
||||
this.image3D.Name = "image3D";
|
||||
this.image3D.Radius = 6;
|
||||
this.image3D.Size = new System.Drawing.Size(320, 162);
|
||||
this.image3D.TabIndex = 0;
|
||||
this.image3D.Text = "image3D1";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label3.Location = new System.Drawing.Point(3, 301);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(694, 24);
|
||||
this.label3.TabIndex = 64;
|
||||
this.label3.Text = "阴影效果";
|
||||
//
|
||||
// flowPanel2
|
||||
//
|
||||
this.flowPanel2.Controls.Add(this.image3D_shadowV);
|
||||
this.flowPanel2.Controls.Add(this.image3D_shadow);
|
||||
this.flowPanel2.Location = new System.Drawing.Point(3, 331);
|
||||
this.flowPanel2.Name = "flowPanel2";
|
||||
this.flowPanel2.Size = new System.Drawing.Size(694, 168);
|
||||
this.flowPanel2.TabIndex = 65;
|
||||
this.flowPanel2.Text = "flowPanel2";
|
||||
//
|
||||
// image3D_shadow
|
||||
//
|
||||
this.image3D_shadow.Image = global::AntdUIDemo.Properties.Resources.bg1;
|
||||
this.image3D_shadow.Location = new System.Drawing.Point(3, 3);
|
||||
this.image3D_shadow.Name = "image3D_shadow";
|
||||
this.image3D_shadow.Padding = new System.Windows.Forms.Padding(12);
|
||||
this.image3D_shadow.Radius = 6;
|
||||
this.image3D_shadow.Shadow = 12;
|
||||
this.image3D_shadow.Size = new System.Drawing.Size(320, 162);
|
||||
this.image3D_shadow.TabIndex = 2;
|
||||
this.image3D_shadow.Text = "image3D2";
|
||||
//
|
||||
// image3D_V
|
||||
//
|
||||
this.image3D_V.Duration = 200;
|
||||
this.image3D_V.Image = global::AntdUIDemo.Properties.Resources.bg1;
|
||||
this.image3D_V.Location = new System.Drawing.Point(329, 3);
|
||||
this.image3D_V.Name = "image3D_V";
|
||||
this.image3D_V.Radius = 6;
|
||||
this.image3D_V.Size = new System.Drawing.Size(320, 162);
|
||||
this.image3D_V.TabIndex = 1;
|
||||
this.image3D_V.Text = "image3D1";
|
||||
this.image3D_V.Vertical = true;
|
||||
//
|
||||
// image3D_shadowV
|
||||
//
|
||||
this.image3D_shadowV.Duration = 200;
|
||||
this.image3D_shadowV.Image = global::AntdUIDemo.Properties.Resources.bg1;
|
||||
this.image3D_shadowV.Location = new System.Drawing.Point(329, 3);
|
||||
this.image3D_shadowV.Name = "image3D_shadowV";
|
||||
this.image3D_shadowV.Padding = new System.Windows.Forms.Padding(12);
|
||||
this.image3D_shadowV.Radius = 6;
|
||||
this.image3D_shadowV.Shadow = 12;
|
||||
this.image3D_shadowV.Size = new System.Drawing.Size(320, 162);
|
||||
this.image3D_shadowV.TabIndex = 3;
|
||||
this.image3D_shadowV.Text = "image3D2";
|
||||
this.image3D_shadowV.Vertical = true;
|
||||
//
|
||||
// Image3DDemo
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
this.Name = "Image3DDemo";
|
||||
this.Size = new System.Drawing.Size(700, 554);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.flowPanel1.ResumeLayout(false);
|
||||
this.flowPanel2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private AntdUI.StackPanel stackPanel1;
|
||||
private AntdUI.Label label4;
|
||||
private AntdUI.Divider divider1;
|
||||
private AntdUI.Label label2;
|
||||
private AntdUI.Label label1;
|
||||
private AntdUI.FlowPanel flowPanel1;
|
||||
private AntdUI.Image3D image3D;
|
||||
private AntdUI.FlowPanel flowPanel2;
|
||||
private AntdUI.Image3D image3D_shadow;
|
||||
private AntdUI.Label label3;
|
||||
private AntdUI.Image3D image3D_shadowV;
|
||||
private AntdUI.Image3D image3D_V;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
public partial class Image3DDemo : UserControl
|
||||
{
|
||||
Random random = new Random();
|
||||
public Image3DDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
BindEventHandler();
|
||||
}
|
||||
|
||||
private void BindEventHandler()
|
||||
{
|
||||
image3D.Click += Image3D_Click;
|
||||
image3D_shadow.Click += Image3D_Click;
|
||||
image3D_V.Click += Image3D_Click;
|
||||
image3D_shadowV.Click += Image3D_Click;
|
||||
}
|
||||
|
||||
private void Image3D_Click(object sender, EventArgs e)
|
||||
{
|
||||
var image = (AntdUI.Image3D)sender;
|
||||
var num = random.Next(1, 4);
|
||||
switch (num)
|
||||
{
|
||||
case 1:
|
||||
image.Image = Properties.Resources.bg1;
|
||||
break;
|
||||
case 2:
|
||||
image.Image = Properties.Resources.bg2;
|
||||
break;
|
||||
case 3:
|
||||
image.Image = Properties.Resources.bg3;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Generated
+12
-12
@@ -30,10 +30,10 @@
|
||||
{
|
||||
this.stackPanel1 = new AntdUI.StackPanel();
|
||||
this.panel1 = new AntdUI.Panel();
|
||||
this.msgList = new AntdUI.Chat.MsgList();
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.msgList = new AntdUI.Chat.MsgList();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
@@ -62,6 +62,15 @@
|
||||
this.panel1.TabIndex = 32;
|
||||
this.panel1.Text = "panel1";
|
||||
//
|
||||
// msgList
|
||||
//
|
||||
this.msgList.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.msgList.Location = new System.Drawing.Point(12, 12);
|
||||
this.msgList.Name = "msgList";
|
||||
this.msgList.Size = new System.Drawing.Size(220, 347);
|
||||
this.msgList.TabIndex = 0;
|
||||
this.msgList.Text = "msgList1";
|
||||
//
|
||||
// divider1
|
||||
//
|
||||
this.divider1.Location = new System.Drawing.Point(3, 79);
|
||||
@@ -76,7 +85,7 @@
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(694, 24);
|
||||
this.label2.TabIndex = 30;
|
||||
this.label2.Text = "气泡聊天列表。";
|
||||
this.label2.Text = "好友消息列表。";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
@@ -85,16 +94,7 @@
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(694, 40);
|
||||
this.label1.TabIndex = 29;
|
||||
this.label1.Text = "ChatList 气泡聊天列表";
|
||||
//
|
||||
// msgList
|
||||
//
|
||||
this.msgList.Dock = System.Windows.Forms.DockStyle.Left;
|
||||
this.msgList.Location = new System.Drawing.Point(12, 12);
|
||||
this.msgList.Name = "msgList";
|
||||
this.msgList.Size = new System.Drawing.Size(220, 347);
|
||||
this.msgList.TabIndex = 0;
|
||||
this.msgList.Text = "msgList1";
|
||||
this.label1.Text = "MsgList 好友消息列表";
|
||||
//
|
||||
// MsgListDemo
|
||||
//
|
||||
|
||||
@@ -89,27 +89,27 @@ namespace AntdUIDemo.Views
|
||||
{
|
||||
case "TL":
|
||||
align = TAlignFrom.TL;
|
||||
AntdUI.Notification.open(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
AntdUI.Notification.info(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
break;
|
||||
case "TR":
|
||||
align = TAlignFrom.TR;
|
||||
AntdUI.Notification.open(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
AntdUI.Notification.info(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
break;
|
||||
case "Top":
|
||||
align = TAlignFrom.Top;
|
||||
AntdUI.Notification.open(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
AntdUI.Notification.info(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
break;
|
||||
case "BR":
|
||||
align = TAlignFrom.BR;
|
||||
AntdUI.Notification.open(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
AntdUI.Notification.info(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
break;
|
||||
case "BL":
|
||||
align = TAlignFrom.BL;
|
||||
AntdUI.Notification.open(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
AntdUI.Notification.info(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
break;
|
||||
case "Bottom":
|
||||
align = TAlignFrom.Bottom;
|
||||
AntdUI.Notification.open(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
AntdUI.Notification.info(window, $"Notification {align}", "Hello AntdUI Demo!", autoClose: 3, align: align);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+205
@@ -0,0 +1,205 @@
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
partial class WindowBarDemo
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region 组件设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.stackPanel1 = new AntdUI.StackPanel();
|
||||
this.label4 = new AntdUI.Label();
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.windowBar1 = new AntdUI.WindowBar();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.windowBar2 = new AntdUI.WindowBar();
|
||||
this.label5 = new AntdUI.Label();
|
||||
this.windowBar3 = new AntdUI.WindowBar();
|
||||
this.label6 = new AntdUI.Label();
|
||||
this.windowBar4 = new AntdUI.WindowBar();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// stackPanel1
|
||||
//
|
||||
this.stackPanel1.Controls.Add(this.windowBar4);
|
||||
this.stackPanel1.Controls.Add(this.label6);
|
||||
this.stackPanel1.Controls.Add(this.windowBar3);
|
||||
this.stackPanel1.Controls.Add(this.label5);
|
||||
this.stackPanel1.Controls.Add(this.windowBar2);
|
||||
this.stackPanel1.Controls.Add(this.label3);
|
||||
this.stackPanel1.Controls.Add(this.windowBar1);
|
||||
this.stackPanel1.Controls.Add(this.label4);
|
||||
this.stackPanel1.Controls.Add(this.divider1);
|
||||
this.stackPanel1.Controls.Add(this.label2);
|
||||
this.stackPanel1.Controls.Add(this.label1);
|
||||
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.stackPanel1.Location = new System.Drawing.Point(0, 0);
|
||||
this.stackPanel1.Name = "stackPanel1";
|
||||
this.stackPanel1.Size = new System.Drawing.Size(700, 527);
|
||||
this.stackPanel1.TabIndex = 0;
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label4.Location = new System.Drawing.Point(3, 97);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(694, 24);
|
||||
this.label4.TabIndex = 65;
|
||||
this.label4.Text = "基本用法";
|
||||
//
|
||||
// divider1
|
||||
//
|
||||
this.divider1.Location = new System.Drawing.Point(3, 79);
|
||||
this.divider1.Name = "divider1";
|
||||
this.divider1.Size = new System.Drawing.Size(694, 12);
|
||||
this.divider1.TabIndex = 64;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label2.Location = new System.Drawing.Point(3, 49);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(694, 24);
|
||||
this.label2.TabIndex = 63;
|
||||
this.label2.Text = "可自定义的窗口栏";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.Location = new System.Drawing.Point(3, 3);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(694, 40);
|
||||
this.label1.TabIndex = 62;
|
||||
this.label1.Text = "WindowBar 窗口栏";
|
||||
//
|
||||
// windowBar1
|
||||
//
|
||||
this.windowBar1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.windowBar1.Icon = global::AntdUIDemo.Properties.Resources.logo;
|
||||
this.windowBar1.IsMax = false;
|
||||
this.windowBar1.Location = new System.Drawing.Point(3, 127);
|
||||
this.windowBar1.Name = "windowBar1";
|
||||
this.windowBar1.Size = new System.Drawing.Size(694, 32);
|
||||
this.windowBar1.SubText = "Demo";
|
||||
this.windowBar1.TabIndex = 66;
|
||||
this.windowBar1.Text = "WindowBar";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label3.Location = new System.Drawing.Point(3, 165);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(694, 24);
|
||||
this.label3.TabIndex = 68;
|
||||
this.label3.Text = "加载状态";
|
||||
//
|
||||
// windowBar2
|
||||
//
|
||||
this.windowBar2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.windowBar2.Icon = global::AntdUIDemo.Properties.Resources.logo;
|
||||
this.windowBar2.IsMax = false;
|
||||
this.windowBar2.Loading = true;
|
||||
this.windowBar2.Location = new System.Drawing.Point(3, 195);
|
||||
this.windowBar2.Name = "windowBar2";
|
||||
this.windowBar2.Size = new System.Drawing.Size(694, 32);
|
||||
this.windowBar2.TabIndex = 69;
|
||||
this.windowBar2.Text = "WindowBar";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label5.Location = new System.Drawing.Point(3, 233);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(694, 24);
|
||||
this.label5.TabIndex = 70;
|
||||
this.label5.Text = "禁用最大/小化";
|
||||
//
|
||||
// windowBar3
|
||||
//
|
||||
this.windowBar3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.windowBar3.Icon = global::AntdUIDemo.Properties.Resources.logo;
|
||||
this.windowBar3.IsMax = false;
|
||||
this.windowBar3.Location = new System.Drawing.Point(3, 263);
|
||||
this.windowBar3.MaximizeBox = false;
|
||||
this.windowBar3.MinimizeBox = false;
|
||||
this.windowBar3.Name = "windowBar3";
|
||||
this.windowBar3.Size = new System.Drawing.Size(694, 32);
|
||||
this.windowBar3.TabIndex = 71;
|
||||
this.windowBar3.Text = "WindowBar";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label6.Location = new System.Drawing.Point(3, 301);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(694, 24);
|
||||
this.label6.TabIndex = 72;
|
||||
this.label6.Text = "线条样式";
|
||||
//
|
||||
// windowBar4
|
||||
//
|
||||
this.windowBar4.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(87)))), ((int)(((byte)(34)))));
|
||||
this.windowBar4.DividerMargin = 120;
|
||||
this.windowBar4.DividerShow = true;
|
||||
this.windowBar4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.windowBar4.Icon = global::AntdUIDemo.Properties.Resources.logo;
|
||||
this.windowBar4.IsMax = false;
|
||||
this.windowBar4.Location = new System.Drawing.Point(3, 331);
|
||||
this.windowBar4.Name = "windowBar4";
|
||||
this.windowBar4.Size = new System.Drawing.Size(694, 32);
|
||||
this.windowBar4.TabIndex = 73;
|
||||
this.windowBar4.Text = "WindowBar";
|
||||
//
|
||||
// WindowBarDemo
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
this.Name = "WindowBarDemo";
|
||||
this.Size = new System.Drawing.Size(700, 527);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private AntdUI.StackPanel stackPanel1;
|
||||
private AntdUI.Label label4;
|
||||
private AntdUI.Divider divider1;
|
||||
private AntdUI.Label label2;
|
||||
private AntdUI.Label label1;
|
||||
private AntdUI.WindowBar windowBar1;
|
||||
private AntdUI.Label label6;
|
||||
private AntdUI.WindowBar windowBar3;
|
||||
private AntdUI.Label label5;
|
||||
private AntdUI.WindowBar windowBar2;
|
||||
private AntdUI.Label label3;
|
||||
private AntdUI.WindowBar windowBar4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
public partial class WindowBarDemo : UserControl
|
||||
{
|
||||
public WindowBarDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
Reference in New Issue
Block a user