升级1.8.6,新增Splitter,FloatButton徽标优化,GridPanel新增行高设置
This commit is contained in:
Generated
+8
-3
@@ -249,8 +249,13 @@
|
||||
//
|
||||
// input_badgesize
|
||||
//
|
||||
this.input_badgesize.DecimalPlaces = 2;
|
||||
this.input_badgesize.DecimalPlaces = 1;
|
||||
this.input_badgesize.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
|
||||
this.input_badgesize.Increment = new decimal(new int[] {
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
65536});
|
||||
this.input_badgesize.Location = new System.Drawing.Point(292, 3);
|
||||
this.input_badgesize.Minimum = new decimal(new int[] {
|
||||
0,
|
||||
@@ -260,12 +265,12 @@
|
||||
this.input_badgesize.Name = "input_badgesize";
|
||||
this.input_badgesize.Size = new System.Drawing.Size(88, 26);
|
||||
this.input_badgesize.TabIndex = 13;
|
||||
this.input_badgesize.Text = "6.00";
|
||||
this.input_badgesize.Text = "0.6";
|
||||
this.input_badgesize.Value = new decimal(new int[] {
|
||||
6,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
65536});
|
||||
this.input_badgesize.WaveSize = 0;
|
||||
//
|
||||
// label15
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace AntdUIDemo.Views
|
||||
input_gap.Value = 40;
|
||||
input_radius.Value = 6;
|
||||
input_badge.Text = "";
|
||||
input_badgesize.Value = 6;
|
||||
input_badgesize.Value = 0.6m;
|
||||
colorPicker.Value = Color.FromArgb(22, 119, 255);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace AntdUIDemo.Views
|
||||
Round = switch_round.Checked,
|
||||
Type = (TTypeMini)select_type.SelectedValue,
|
||||
Radius = (int)input_radius.Value,
|
||||
Badge = input_badge.Text,
|
||||
Badge = input_badge.Text==""? null:input_badge.Text,
|
||||
BadgeSize = (float)input_badgesize.Value,
|
||||
BadgeBack = colorPicker.Value,
|
||||
Enabled = switch_enabled.Checked,
|
||||
@@ -124,7 +124,7 @@ namespace AntdUIDemo.Views
|
||||
Round = switch_round.Checked,
|
||||
Type = (TTypeMini)select_type.SelectedValue,
|
||||
Radius = (int)input_radius.Value,
|
||||
Badge = input_badge.Text,
|
||||
Badge = input_badge.Text==""? null:input_badge.Text,
|
||||
BadgeSize = (float)input_badgesize.Value,
|
||||
BadgeBack = colorPicker.Value,
|
||||
Enabled = switch_enabled.Checked,
|
||||
@@ -137,7 +137,7 @@ namespace AntdUIDemo.Views
|
||||
Round = switch_round.Checked,
|
||||
Type = (TTypeMini)select_type.SelectedValue,
|
||||
Radius = (int)input_radius.Value,
|
||||
Badge = input_badge.Text,
|
||||
Badge = input_badge.Text==""? null:input_badge.Text,
|
||||
BadgeSize = (float)input_badgesize.Value,
|
||||
BadgeBack = colorPicker.Value,
|
||||
Enabled = switch_enabled.Checked,
|
||||
|
||||
Generated
+19
-8
@@ -40,6 +40,7 @@
|
||||
this.stackPanel5 = new AntdUI.StackPanel();
|
||||
this.input_span = new AntdUI.Input();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.stackPanel2.SuspendLayout();
|
||||
this.stackPanel3.SuspendLayout();
|
||||
@@ -56,7 +57,7 @@
|
||||
this.header1.Location = new System.Drawing.Point(0, 0);
|
||||
this.header1.Name = "header1";
|
||||
this.header1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.header1.Size = new System.Drawing.Size(700, 74);
|
||||
this.header1.Size = new System.Drawing.Size(750, 74);
|
||||
this.header1.TabIndex = 27;
|
||||
this.header1.Text = "GridPanel 网格布局";
|
||||
this.header1.UseTitleFont = true;
|
||||
@@ -67,7 +68,7 @@
|
||||
this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.stackPanel1.Location = new System.Drawing.Point(0, 74);
|
||||
this.stackPanel1.Name = "stackPanel1";
|
||||
this.stackPanel1.Size = new System.Drawing.Size(700, 401);
|
||||
this.stackPanel1.Size = new System.Drawing.Size(750, 401);
|
||||
this.stackPanel1.TabIndex = 0;
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
@@ -78,7 +79,7 @@
|
||||
this.stackPanel2.Controls.Add(this.stackPanel3);
|
||||
this.stackPanel2.Location = new System.Drawing.Point(3, 3);
|
||||
this.stackPanel2.Name = "stackPanel2";
|
||||
this.stackPanel2.Size = new System.Drawing.Size(694, 299);
|
||||
this.stackPanel2.Size = new System.Drawing.Size(744, 395);
|
||||
this.stackPanel2.TabIndex = 9;
|
||||
this.stackPanel2.Text = "stackPanel2";
|
||||
//
|
||||
@@ -86,18 +87,19 @@
|
||||
//
|
||||
this.gridPanel.Location = new System.Drawing.Point(259, 3);
|
||||
this.gridPanel.Name = "gridPanel";
|
||||
this.gridPanel.Size = new System.Drawing.Size(462, 293);
|
||||
this.gridPanel.Size = new System.Drawing.Size(462, 389);
|
||||
this.gridPanel.TabIndex = 1;
|
||||
this.gridPanel.Text = "gridPanel1";
|
||||
//
|
||||
// stackPanel3
|
||||
//
|
||||
this.stackPanel3.Controls.Add(this.label1);
|
||||
this.stackPanel3.Controls.Add(this.buttonCZ);
|
||||
this.stackPanel3.Controls.Add(this.stackPanel4);
|
||||
this.stackPanel3.Controls.Add(this.stackPanel5);
|
||||
this.stackPanel3.Location = new System.Drawing.Point(3, 3);
|
||||
this.stackPanel3.Name = "stackPanel3";
|
||||
this.stackPanel3.Size = new System.Drawing.Size(250, 293);
|
||||
this.stackPanel3.Size = new System.Drawing.Size(250, 389);
|
||||
this.stackPanel3.TabIndex = 0;
|
||||
this.stackPanel3.Text = "stackPanel3";
|
||||
this.stackPanel3.Vertical = true;
|
||||
@@ -163,10 +165,9 @@
|
||||
this.input_span.Location = new System.Drawing.Point(79, 3);
|
||||
this.input_span.Multiline = true;
|
||||
this.input_span.Name = "input_span";
|
||||
this.input_span.PlaceholderText = "分号隔开为行,空格隔开为列(可设置固定值或百分号)";
|
||||
this.input_span.Size = new System.Drawing.Size(165, 45);
|
||||
this.input_span.TabIndex = 5;
|
||||
this.input_span.Text = "50% 50%;20% 80%;150 200";
|
||||
this.input_span.Text = "50% 50%;20% 80%;150 200;-20% 30% 50%";
|
||||
this.input_span.WaveSize = 0;
|
||||
//
|
||||
// label3
|
||||
@@ -178,12 +179,21 @@
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "Span";
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label1.Location = new System.Drawing.Point(3, 136);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(244, 84);
|
||||
this.label1.TabIndex = 21;
|
||||
this.label1.Text = "Span:以-为分解。-前为列宽属性,-后为行高属性列宽以;分组。每一组代表一行\r\n行高属性个数要与行数对应,每个数之间用空格间隔";
|
||||
//
|
||||
// GridPanelDemo
|
||||
//
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
this.Controls.Add(this.header1);
|
||||
this.Name = "GridPanelDemo";
|
||||
this.Size = new System.Drawing.Size(700, 475);
|
||||
this.Size = new System.Drawing.Size(750, 475);
|
||||
this.Load += new System.EventHandler(this.GridPanelDemo_Load);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.stackPanel2.ResumeLayout(false);
|
||||
@@ -208,5 +218,6 @@
|
||||
private AntdUI.InputNumber input_gap;
|
||||
private AntdUI.Label label4;
|
||||
private AntdUI.Button buttonCZ;
|
||||
private AntdUI.Label label1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace AntdUIDemo.Views
|
||||
private void InitData()
|
||||
{
|
||||
input_gap.Value = 0;
|
||||
input_span.Text = "50% 50%;20% 80%;150 200";
|
||||
input_span.Text = "50% 50%;20% 80%;150 200;-20% 30% 50%";
|
||||
}
|
||||
|
||||
private void BindEventHandler()
|
||||
@@ -37,15 +37,16 @@ namespace AntdUIDemo.Views
|
||||
|
||||
private void LoadGridPanel(string spantext, decimal gap)
|
||||
{
|
||||
gridPanel.Controls.Clear();
|
||||
if (gridPanel.InvokeRequired)
|
||||
{
|
||||
gridPanel.Invoke(new Action(() => LoadGridPanel(spantext, gap)));
|
||||
return;
|
||||
}
|
||||
gridPanel.Controls.Clear();
|
||||
gridPanel.Span = spantext;
|
||||
gridPanel.Gap = (int)gap;
|
||||
string[] array = spantext.Split(';', ' ', '\n');
|
||||
spantext = spantext.Substring(0, spantext.IndexOf('-'));
|
||||
string[] array = spantext.Split(new char[] { ' ', ';' }, StringSplitOptions.RemoveEmptyEntries);
|
||||
for (int i = 1; i < array.Length + 1; i++)
|
||||
{
|
||||
var control = new AntdUI.Button()
|
||||
|
||||
Generated
+117
@@ -0,0 +1,117 @@
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
partial class SplitterDemo
|
||||
{
|
||||
/// <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.header1 = new AntdUI.PageHeader();
|
||||
this.splitter1 = new AntdUI.Splitter();
|
||||
this.button1 = new AntdUI.Button();
|
||||
this.button2 = new AntdUI.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitter1)).BeginInit();
|
||||
this.splitter1.Panel1.SuspendLayout();
|
||||
this.splitter1.Panel2.SuspendLayout();
|
||||
this.splitter1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// header1
|
||||
//
|
||||
this.header1.Description = "自由切分指定区域。";
|
||||
this.header1.DividerShow = true;
|
||||
this.header1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.header1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
|
||||
this.header1.Location = new System.Drawing.Point(0, 0);
|
||||
this.header1.Name = "header1";
|
||||
this.header1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.header1.Size = new System.Drawing.Size(750, 74);
|
||||
this.header1.TabIndex = 28;
|
||||
this.header1.Text = "Splitter 分隔面板";
|
||||
this.header1.UseTitleFont = true;
|
||||
//
|
||||
// splitter1
|
||||
//
|
||||
this.splitter1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.splitter1.Location = new System.Drawing.Point(0, 74);
|
||||
this.splitter1.Name = "splitter1";
|
||||
//
|
||||
// splitter1.Panel1
|
||||
//
|
||||
this.splitter1.Panel1.Controls.Add(this.button1);
|
||||
//
|
||||
// splitter1.Panel2
|
||||
//
|
||||
this.splitter1.Panel2.Controls.Add(this.button2);
|
||||
this.splitter1.Size = new System.Drawing.Size(750, 457);
|
||||
this.splitter1.SplitterDistance = 264;
|
||||
this.splitter1.SplitterSize = 30;
|
||||
this.splitter1.TabIndex = 31;
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.button1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.button1.Location = new System.Drawing.Point(0, 0);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(264, 45);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "Button";
|
||||
this.button1.Type = AntdUI.TTypeMini.Primary;
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.button2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.button2.Location = new System.Drawing.Point(0, 0);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(482, 45);
|
||||
this.button2.TabIndex = 1;
|
||||
this.button2.Text = "Button";
|
||||
this.button2.Type = AntdUI.TTypeMini.Warn;
|
||||
//
|
||||
// SplitterDemo
|
||||
//
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
|
||||
this.Controls.Add(this.splitter1);
|
||||
this.Controls.Add(this.header1);
|
||||
this.Name = "SplitterDemo";
|
||||
this.Size = new System.Drawing.Size(750, 531);
|
||||
this.splitter1.Panel1.ResumeLayout(false);
|
||||
this.splitter1.Panel2.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)(this.splitter1)).EndInit();
|
||||
this.splitter1.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private AntdUI.PageHeader header1;
|
||||
private AntdUI.Splitter splitter1;
|
||||
private AntdUI.Button button1;
|
||||
private AntdUI.Button button2;
|
||||
}
|
||||
}
|
||||
@@ -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 SplitterDemo : UserControl
|
||||
{
|
||||
public SplitterDemo()
|
||||
{
|
||||
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