更新浮动按钮Demo
This commit is contained in:
parent
0ffe706463
commit
fb5c141341
@ -49,6 +49,10 @@ namespace AntdUIDemo
|
||||
var name = item.Tag;
|
||||
if (control != null)
|
||||
{
|
||||
if (control is FloatButtonDemo floatButtonDemo)
|
||||
{
|
||||
floatButtonDemo.CloseFloatButtonForm(); // 清理浮动按钮窗体
|
||||
}
|
||||
panel_content.Controls.Clear();
|
||||
control.Dispose();
|
||||
control = null;
|
||||
@ -58,6 +62,9 @@ namespace AntdUIDemo
|
||||
case "Button":
|
||||
control = new ButtonDemo();
|
||||
break;
|
||||
case "FloatButton":
|
||||
control = new FloatButtonDemo(this);
|
||||
break;
|
||||
}
|
||||
if (control != null)
|
||||
{
|
||||
|
||||
73
Properties/Resources.Designer.cs
generated
Normal file
73
Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,73 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace AntdUIDemo.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 一个强类型的资源类,用于查找本地化的字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存的 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AntdUIDemo.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap 关闭 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("关闭", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
124
Properties/Resources.resx
Normal file
124
Properties/Resources.resx
Normal file
@ -0,0 +1,124 @@
|
||||
<?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>
|
||||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
|
||||
<data name="关闭" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\关闭.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
||||
BIN
Resources/关闭.png
Normal file
BIN
Resources/关闭.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
75
Views/ButtonDemo.Designer.cs
generated
75
Views/ButtonDemo.Designer.cs
generated
@ -30,6 +30,9 @@
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ButtonDemo));
|
||||
this.stackPanel1 = new AntdUI.StackPanel();
|
||||
this.flowPanel7 = new AntdUI.FlowPanel();
|
||||
this.button39 = new AntdUI.Button();
|
||||
this.label9 = new AntdUI.Label();
|
||||
this.flowPanel6 = new AntdUI.FlowPanel();
|
||||
this.panel3 = new AntdUI.Panel();
|
||||
this.button36 = new AntdUI.Button();
|
||||
@ -81,10 +84,8 @@
|
||||
this.divider1 = new AntdUI.Divider();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.flowPanel7 = new AntdUI.FlowPanel();
|
||||
this.button39 = new AntdUI.Button();
|
||||
this.label9 = new AntdUI.Label();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.flowPanel7.SuspendLayout();
|
||||
this.flowPanel6.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
@ -93,7 +94,6 @@
|
||||
this.flowPanel3.SuspendLayout();
|
||||
this.flowPanel2.SuspendLayout();
|
||||
this.flowPanel1.SuspendLayout();
|
||||
this.flowPanel7.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// stackPanel1
|
||||
@ -123,6 +123,37 @@
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
//
|
||||
// flowPanel7
|
||||
//
|
||||
this.flowPanel7.Controls.Add(this.button39);
|
||||
this.flowPanel7.Location = new System.Drawing.Point(3, 571);
|
||||
this.flowPanel7.Name = "flowPanel7";
|
||||
this.flowPanel7.Size = new System.Drawing.Size(718, 38);
|
||||
this.flowPanel7.TabIndex = 18;
|
||||
this.flowPanel7.Text = "flowPanel7";
|
||||
//
|
||||
// button39
|
||||
//
|
||||
this.button39.BackExtend = "135, #6253E1, #04BEFE";
|
||||
this.button39.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.button39.ImageSvg = resources.GetString("button39.ImageSvg");
|
||||
this.button39.Location = new System.Drawing.Point(3, 3);
|
||||
this.button39.Name = "button39";
|
||||
this.button39.Size = new System.Drawing.Size(156, 32);
|
||||
this.button39.TabIndex = 7;
|
||||
this.button39.Text = "Gradient Button";
|
||||
this.button39.Type = AntdUI.TTypeMini.Primary;
|
||||
this.button39.WaveSize = 0;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label9.Location = new System.Drawing.Point(3, 541);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(718, 24);
|
||||
this.label9.TabIndex = 17;
|
||||
this.label9.Text = "渐变按钮";
|
||||
//
|
||||
// flowPanel6
|
||||
//
|
||||
this.flowPanel6.Controls.Add(this.panel3);
|
||||
@ -150,7 +181,7 @@
|
||||
this.button36.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.button36.Ghost = true;
|
||||
this.button36.JoinLeft = true;
|
||||
this.button36.Location = new System.Drawing.Point(77, 3);
|
||||
this.button36.Location = new System.Drawing.Point(78, 3);
|
||||
this.button36.Name = "button36";
|
||||
this.button36.Size = new System.Drawing.Size(75, 32);
|
||||
this.button36.TabIndex = 4;
|
||||
@ -727,37 +758,6 @@
|
||||
this.label1.TabIndex = 0;
|
||||
this.label1.Text = "Button 按钮";
|
||||
//
|
||||
// flowPanel7
|
||||
//
|
||||
this.flowPanel7.Controls.Add(this.button39);
|
||||
this.flowPanel7.Location = new System.Drawing.Point(3, 571);
|
||||
this.flowPanel7.Name = "flowPanel7";
|
||||
this.flowPanel7.Size = new System.Drawing.Size(718, 38);
|
||||
this.flowPanel7.TabIndex = 18;
|
||||
this.flowPanel7.Text = "flowPanel7";
|
||||
//
|
||||
// button39
|
||||
//
|
||||
this.button39.BackExtend = "135, #6253E1, #04BEFE";
|
||||
this.button39.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.button39.ImageSvg = resources.GetString("button39.ImageSvg");
|
||||
this.button39.Location = new System.Drawing.Point(3, 3);
|
||||
this.button39.Name = "button39";
|
||||
this.button39.Size = new System.Drawing.Size(156, 32);
|
||||
this.button39.TabIndex = 7;
|
||||
this.button39.Text = "Gradient Button";
|
||||
this.button39.Type = AntdUI.TTypeMini.Primary;
|
||||
this.button39.WaveSize = 0;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label9.Location = new System.Drawing.Point(3, 541);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(718, 24);
|
||||
this.label9.TabIndex = 17;
|
||||
this.label9.Text = "渐变按钮";
|
||||
//
|
||||
// ButtonDemo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@ -765,7 +765,9 @@
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
this.Name = "ButtonDemo";
|
||||
this.Size = new System.Drawing.Size(724, 629);
|
||||
this.Load += new System.EventHandler(this.ButtonDemo_Load);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.flowPanel7.ResumeLayout(false);
|
||||
this.flowPanel6.ResumeLayout(false);
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.panel2.ResumeLayout(false);
|
||||
@ -774,7 +776,6 @@
|
||||
this.flowPanel3.ResumeLayout(false);
|
||||
this.flowPanel2.ResumeLayout(false);
|
||||
this.flowPanel1.ResumeLayout(false);
|
||||
this.flowPanel7.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
@ -12,9 +12,79 @@ namespace AntdUIDemo.Views
|
||||
{
|
||||
public partial class ButtonDemo : UserControl
|
||||
{
|
||||
private AntdUI.TooltipComponent tooltipComponent = new AntdUI.TooltipComponent();
|
||||
public ButtonDemo()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void ButtonDemo_Load(object sender, EventArgs e)
|
||||
{
|
||||
// 遍历窗体中的所有控件并绑定 tooltip
|
||||
BindButtonMouseHoverEvent(this);
|
||||
}
|
||||
|
||||
private void BindButtonMouseHoverEvent(Control parent)
|
||||
{
|
||||
foreach (Control control in parent.Controls)
|
||||
{
|
||||
if (control is AntdUI.Button antduibutton)
|
||||
{
|
||||
var button = (AntdUI.Button)control;
|
||||
var type = button.Type;
|
||||
float borderwidth = button.BorderWidth;
|
||||
int radius = button.Radius;
|
||||
int wavesize = button.WaveSize;
|
||||
var shape = button.Shape;
|
||||
bool ghost = button.Ghost;
|
||||
bool showarrow = button.ShowArrow;
|
||||
bool joinleft = button.JoinLeft;
|
||||
bool joinright = button.JoinRight;
|
||||
var imagesvg = button.ImageSvg;
|
||||
var backentend = button.BackExtend;
|
||||
// 构建SetTip文本
|
||||
var tooltipText = new StringBuilder();
|
||||
tooltipComponent.Font = new Font("Microsoft JhengHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point);
|
||||
tooltipText.AppendLine($"Type: {type}");
|
||||
tooltipText.AppendLine($"BorderWidth: {borderwidth}");
|
||||
tooltipText.AppendLine($"Radius: {radius}");
|
||||
tooltipText.AppendLine($"Wavesize: {wavesize}");
|
||||
tooltipText.AppendLine($"Shape: {shape}");
|
||||
|
||||
if (ghost)
|
||||
{
|
||||
tooltipText.AppendLine($"Ghost: {ghost}");
|
||||
}
|
||||
if (showarrow)
|
||||
{
|
||||
tooltipText.AppendLine($"ShowArrow: {showarrow}");
|
||||
}
|
||||
if (joinleft)
|
||||
{
|
||||
tooltipText.AppendLine($"JoinLeft: {joinleft}");
|
||||
}
|
||||
if (joinright)
|
||||
{
|
||||
tooltipText.AppendLine($"JoinRight: {joinright}");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(imagesvg))
|
||||
{
|
||||
tooltipText.AppendLine($"ImageSvg: 参见ImageSvg属性");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(backentend))
|
||||
{
|
||||
tooltipText.AppendLine($"BackExtend: {backentend}");
|
||||
}
|
||||
tooltipComponent.SetTip(control, tooltipText.ToString());
|
||||
}
|
||||
|
||||
// 递归遍历子控件
|
||||
if (control.HasChildren)
|
||||
{
|
||||
BindButtonMouseHoverEvent(control);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -117,12 +117,15 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="button34.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896" focusable="false" data-icon="poweroff" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"></path></svg></value>
|
||||
<data name="button39.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896"><path d="M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"></path></svg></value>
|
||||
</data>
|
||||
<data name="button37.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896" focusable="false" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></value>
|
||||
</data>
|
||||
<data name="button34.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896" focusable="false" data-icon="poweroff" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"></path></svg></value>
|
||||
</data>
|
||||
<data name="button28.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896" focusable="false" data-icon="search" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"></path></svg></value>
|
||||
</data>
|
||||
@ -147,7 +150,4 @@
|
||||
<data name="button24.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896" focusable="false" data-icon="poweroff" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"></path></svg></value>
|
||||
</data>
|
||||
<data name="button39.ImageSvg" xml:space="preserve">
|
||||
<value><svg viewBox="64 64 896 896"><path d="M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"></path></svg></value>
|
||||
</data>
|
||||
</root>
|
||||
549
Views/FloatButtonDemo.Designer.cs
generated
Normal file
549
Views/FloatButtonDemo.Designer.cs
generated
Normal file
@ -0,0 +1,549 @@
|
||||
namespace AntdUIDemo.Views
|
||||
{
|
||||
partial class FloatButtonDemo
|
||||
{
|
||||
/// <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.stackPanel6 = new AntdUI.StackPanel();
|
||||
this.colorPicker = new AntdUI.ColorPicker();
|
||||
this.label16 = new AntdUI.Label();
|
||||
this.input_badgesize = new AntdUI.InputNumber();
|
||||
this.label15 = new AntdUI.Label();
|
||||
this.input_badge = new AntdUI.Input();
|
||||
this.label17 = new AntdUI.Label();
|
||||
this.stackPanel5 = new AntdUI.StackPanel();
|
||||
this.input_radius = new AntdUI.InputNumber();
|
||||
this.label12 = new AntdUI.Label();
|
||||
this.select_type = new AntdUI.Select();
|
||||
this.label13 = new AntdUI.Label();
|
||||
this.select_shape = new AntdUI.Select();
|
||||
this.label14 = new AntdUI.Label();
|
||||
this.label11 = new AntdUI.Label();
|
||||
this.stackPanel4 = new AntdUI.StackPanel();
|
||||
this.input_my = new AntdUI.InputNumber();
|
||||
this.label8 = new AntdUI.Label();
|
||||
this.input_mx = new AntdUI.InputNumber();
|
||||
this.label7 = new AntdUI.Label();
|
||||
this.input_size = new AntdUI.InputNumber();
|
||||
this.label9 = new AntdUI.Label();
|
||||
this.stackPanel3 = new AntdUI.StackPanel();
|
||||
this.select_vertical = new AntdUI.Select();
|
||||
this.label5 = new AntdUI.Label();
|
||||
this.select_topmost = new AntdUI.Select();
|
||||
this.label6 = new AntdUI.Label();
|
||||
this.select_align = new AntdUI.Select();
|
||||
this.label10 = new AntdUI.Label();
|
||||
this.label4 = new AntdUI.Label();
|
||||
this.stackPanel2 = new AntdUI.StackPanel();
|
||||
this.buttonCZ = new AntdUI.Button();
|
||||
this.buttonClose = new AntdUI.Button();
|
||||
this.buttonOpen = new AntdUI.Button();
|
||||
this.label3 = new AntdUI.Label();
|
||||
this.label2 = new AntdUI.Label();
|
||||
this.label1 = new AntdUI.Label();
|
||||
this.stackPanel1.SuspendLayout();
|
||||
this.stackPanel6.SuspendLayout();
|
||||
this.stackPanel5.SuspendLayout();
|
||||
this.stackPanel4.SuspendLayout();
|
||||
this.stackPanel3.SuspendLayout();
|
||||
this.stackPanel2.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// stackPanel1
|
||||
//
|
||||
this.stackPanel1.Controls.Add(this.stackPanel6);
|
||||
this.stackPanel1.Controls.Add(this.stackPanel5);
|
||||
this.stackPanel1.Controls.Add(this.label11);
|
||||
this.stackPanel1.Controls.Add(this.stackPanel4);
|
||||
this.stackPanel1.Controls.Add(this.stackPanel3);
|
||||
this.stackPanel1.Controls.Add(this.label4);
|
||||
this.stackPanel1.Controls.Add(this.stackPanel2);
|
||||
this.stackPanel1.Controls.Add(this.label3);
|
||||
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(710, 372);
|
||||
this.stackPanel1.TabIndex = 0;
|
||||
this.stackPanel1.Text = "stackPanel1";
|
||||
this.stackPanel1.Vertical = true;
|
||||
//
|
||||
// stackPanel6
|
||||
//
|
||||
this.stackPanel6.Controls.Add(this.colorPicker);
|
||||
this.stackPanel6.Controls.Add(this.label16);
|
||||
this.stackPanel6.Controls.Add(this.input_badgesize);
|
||||
this.stackPanel6.Controls.Add(this.label15);
|
||||
this.stackPanel6.Controls.Add(this.input_badge);
|
||||
this.stackPanel6.Controls.Add(this.label17);
|
||||
this.stackPanel6.Location = new System.Drawing.Point(3, 321);
|
||||
this.stackPanel6.Name = "stackPanel6";
|
||||
this.stackPanel6.Size = new System.Drawing.Size(704, 32);
|
||||
this.stackPanel6.TabIndex = 12;
|
||||
this.stackPanel6.Text = "stackPanel6";
|
||||
//
|
||||
// colorPicker
|
||||
//
|
||||
this.colorPicker.Location = new System.Drawing.Point(447, 3);
|
||||
this.colorPicker.Name = "colorPicker";
|
||||
this.colorPicker.Size = new System.Drawing.Size(75, 26);
|
||||
this.colorPicker.TabIndex = 15;
|
||||
this.colorPicker.Text = "colorPicker1";
|
||||
this.colorPicker.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255)))));
|
||||
this.colorPicker.WaveSize = 0;
|
||||
//
|
||||
// label16
|
||||
//
|
||||
this.label16.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label16.Location = new System.Drawing.Point(353, 3);
|
||||
this.label16.Name = "label16";
|
||||
this.label16.Size = new System.Drawing.Size(88, 26);
|
||||
this.label16.TabIndex = 14;
|
||||
this.label16.Text = "BadgeBack";
|
||||
//
|
||||
// input_badgesize
|
||||
//
|
||||
this.input_badgesize.Location = new System.Drawing.Point(272, 3);
|
||||
this.input_badgesize.Name = "input_badgesize";
|
||||
this.input_badgesize.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_badgesize.TabIndex = 13;
|
||||
this.input_badgesize.Text = "6";
|
||||
this.input_badgesize.Value = new decimal(new int[] {
|
||||
6,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.input_badgesize.WaveSize = 1;
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label15.Location = new System.Drawing.Point(178, 3);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(88, 26);
|
||||
this.label15.TabIndex = 12;
|
||||
this.label15.Text = "BadgeSize";
|
||||
//
|
||||
// input_badge
|
||||
//
|
||||
this.input_badge.Location = new System.Drawing.Point(97, 3);
|
||||
this.input_badge.Name = "input_badge";
|
||||
this.input_badge.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_badge.TabIndex = 5;
|
||||
this.input_badge.WaveSize = 1;
|
||||
//
|
||||
// label17
|
||||
//
|
||||
this.label17.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label17.Location = new System.Drawing.Point(3, 3);
|
||||
this.label17.Name = "label17";
|
||||
this.label17.Size = new System.Drawing.Size(88, 26);
|
||||
this.label17.TabIndex = 4;
|
||||
this.label17.Text = "Badge";
|
||||
//
|
||||
// stackPanel5
|
||||
//
|
||||
this.stackPanel5.Controls.Add(this.input_radius);
|
||||
this.stackPanel5.Controls.Add(this.label12);
|
||||
this.stackPanel5.Controls.Add(this.select_type);
|
||||
this.stackPanel5.Controls.Add(this.label13);
|
||||
this.stackPanel5.Controls.Add(this.select_shape);
|
||||
this.stackPanel5.Controls.Add(this.label14);
|
||||
this.stackPanel5.Location = new System.Drawing.Point(3, 283);
|
||||
this.stackPanel5.Name = "stackPanel5";
|
||||
this.stackPanel5.Size = new System.Drawing.Size(704, 32);
|
||||
this.stackPanel5.TabIndex = 11;
|
||||
this.stackPanel5.Text = "stackPanel5";
|
||||
//
|
||||
// input_radius
|
||||
//
|
||||
this.input_radius.Location = new System.Drawing.Point(447, 3);
|
||||
this.input_radius.Name = "input_radius";
|
||||
this.input_radius.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_radius.TabIndex = 11;
|
||||
this.input_radius.Text = "6";
|
||||
this.input_radius.Value = new decimal(new int[] {
|
||||
6,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.input_radius.WaveSize = 1;
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label12.Location = new System.Drawing.Point(353, 3);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(88, 26);
|
||||
this.label12.TabIndex = 10;
|
||||
this.label12.Text = "Radius";
|
||||
//
|
||||
// select_type
|
||||
//
|
||||
this.select_type.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.select_type.List = true;
|
||||
this.select_type.Location = new System.Drawing.Point(272, 3);
|
||||
this.select_type.Name = "select_type";
|
||||
this.select_type.Size = new System.Drawing.Size(75, 26);
|
||||
this.select_type.TabIndex = 9;
|
||||
this.select_type.WaveSize = 1;
|
||||
//
|
||||
// label13
|
||||
//
|
||||
this.label13.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label13.Location = new System.Drawing.Point(178, 3);
|
||||
this.label13.Name = "label13";
|
||||
this.label13.Size = new System.Drawing.Size(88, 26);
|
||||
this.label13.TabIndex = 8;
|
||||
this.label13.Text = "Type";
|
||||
//
|
||||
// select_shape
|
||||
//
|
||||
this.select_shape.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
|
||||
this.select_shape.List = true;
|
||||
this.select_shape.Location = new System.Drawing.Point(97, 3);
|
||||
this.select_shape.Name = "select_shape";
|
||||
this.select_shape.Size = new System.Drawing.Size(75, 26);
|
||||
this.select_shape.TabIndex = 5;
|
||||
this.select_shape.WaveSize = 1;
|
||||
//
|
||||
// label14
|
||||
//
|
||||
this.label14.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label14.Location = new System.Drawing.Point(3, 3);
|
||||
this.label14.Name = "label14";
|
||||
this.label14.Size = new System.Drawing.Size(88, 26);
|
||||
this.label14.TabIndex = 4;
|
||||
this.label14.Text = "Shape";
|
||||
//
|
||||
// label11
|
||||
//
|
||||
this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
|
||||
this.label11.Location = new System.Drawing.Point(3, 253);
|
||||
this.label11.Name = "label11";
|
||||
this.label11.Size = new System.Drawing.Size(704, 24);
|
||||
this.label11.TabIndex = 10;
|
||||
this.label11.Text = "按钮配置";
|
||||
//
|
||||
// stackPanel4
|
||||
//
|
||||
this.stackPanel4.Controls.Add(this.input_my);
|
||||
this.stackPanel4.Controls.Add(this.label8);
|
||||
this.stackPanel4.Controls.Add(this.input_mx);
|
||||
this.stackPanel4.Controls.Add(this.label7);
|
||||
this.stackPanel4.Controls.Add(this.input_size);
|
||||
this.stackPanel4.Controls.Add(this.label9);
|
||||
this.stackPanel4.Location = new System.Drawing.Point(3, 215);
|
||||
this.stackPanel4.Name = "stackPanel4";
|
||||
this.stackPanel4.Size = new System.Drawing.Size(704, 32);
|
||||
this.stackPanel4.TabIndex = 9;
|
||||
this.stackPanel4.Text = "stackPanel4";
|
||||
//
|
||||
// input_my
|
||||
//
|
||||
this.input_my.Location = new System.Drawing.Point(447, 3);
|
||||
this.input_my.Name = "input_my";
|
||||
this.input_my.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_my.TabIndex = 9;
|
||||
this.input_my.Text = "0";
|
||||
this.input_my.WaveSize = 1;
|
||||
//
|
||||
// label8
|
||||
//
|
||||
this.label8.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label8.Location = new System.Drawing.Point(353, 3);
|
||||
this.label8.Name = "label8";
|
||||
this.label8.Size = new System.Drawing.Size(88, 26);
|
||||
this.label8.TabIndex = 8;
|
||||
this.label8.Text = "MarginY";
|
||||
//
|
||||
// input_mx
|
||||
//
|
||||
this.input_mx.Location = new System.Drawing.Point(272, 3);
|
||||
this.input_mx.Name = "input_mx";
|
||||
this.input_mx.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_mx.TabIndex = 7;
|
||||
this.input_mx.Text = "0";
|
||||
this.input_mx.WaveSize = 1;
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label7.Location = new System.Drawing.Point(178, 3);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(88, 26);
|
||||
this.label7.TabIndex = 6;
|
||||
this.label7.Text = "MarginX";
|
||||
//
|
||||
// input_size
|
||||
//
|
||||
this.input_size.Location = new System.Drawing.Point(97, 3);
|
||||
this.input_size.Name = "input_size";
|
||||
this.input_size.Size = new System.Drawing.Size(75, 26);
|
||||
this.input_size.TabIndex = 5;
|
||||
this.input_size.Text = "40";
|
||||
this.input_size.Value = new decimal(new int[] {
|
||||
40,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.input_size.WaveSize = 1;
|
||||
//
|
||||
// label9
|
||||
//
|
||||
this.label9.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label9.Location = new System.Drawing.Point(3, 3);
|
||||
this.label9.Name = "label9";
|
||||
this.label9.Size = new System.Drawing.Size(88, 26);
|
||||
this.label9.TabIndex = 4;
|
||||
this.label9.Text = "Size";
|
||||
//
|
||||
// stackPanel3
|
||||
//
|
||||
this.stackPanel3.Controls.Add(this.select_vertical);
|
||||
this.stackPanel3.Controls.Add(this.label5);
|
||||
this.stackPanel3.Controls.Add(this.select_topmost);
|
||||
this.stackPanel3.Controls.Add(this.label6);
|
||||
this.stackPanel3.Controls.Add(this.select_align);
|
||||
this.stackPanel3.Controls.Add(this.label10);
|
||||
this.stackPanel3.Location = new System.Drawing.Point(3, 177);
|
||||
this.stackPanel3.Name = "stackPanel3";
|
||||
this.stackPanel3.Size = new System.Drawing.Size(704, 32);
|
||||
this.stackPanel3.TabIndex = 8;
|
||||
this.stackPanel3.Text = "stackPanel3";
|
||||
//
|
||||
// select_vertical
|
||||
//
|
||||
this.select_vertical.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.select_vertical.Items.AddRange(new object[] {
|
||||
"True",
|
||||
"Flase"});
|
||||
this.select_vertical.List = true;
|
||||
this.select_vertical.Location = new System.Drawing.Point(447, 3);
|
||||
this.select_vertical.Name = "select_vertical";
|
||||
this.select_vertical.SelectedValue = "是";
|
||||
this.select_vertical.Size = new System.Drawing.Size(75, 26);
|
||||
this.select_vertical.TabIndex = 11;
|
||||
this.select_vertical.Text = "True";
|
||||
this.select_vertical.WaveSize = 1;
|
||||
//
|
||||
// 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(353, 3);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(88, 26);
|
||||
this.label5.TabIndex = 10;
|
||||
this.label5.Text = "Vertical";
|
||||
//
|
||||
// select_topmost
|
||||
//
|
||||
this.select_topmost.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.select_topmost.Items.AddRange(new object[] {
|
||||
"True",
|
||||
"Flase"});
|
||||
this.select_topmost.List = true;
|
||||
this.select_topmost.Location = new System.Drawing.Point(272, 3);
|
||||
this.select_topmost.Name = "select_topmost";
|
||||
this.select_topmost.SelectedValue = "是";
|
||||
this.select_topmost.Size = new System.Drawing.Size(75, 26);
|
||||
this.select_topmost.TabIndex = 9;
|
||||
this.select_topmost.Text = "True";
|
||||
this.select_topmost.WaveSize = 1;
|
||||
//
|
||||
// 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(178, 3);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(88, 26);
|
||||
this.label6.TabIndex = 8;
|
||||
this.label6.Text = "TopMost";
|
||||
//
|
||||
// select_align
|
||||
//
|
||||
this.select_align.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
|
||||
this.select_align.List = true;
|
||||
this.select_align.Location = new System.Drawing.Point(97, 3);
|
||||
this.select_align.Name = "select_align";
|
||||
this.select_align.Size = new System.Drawing.Size(75, 26);
|
||||
this.select_align.TabIndex = 5;
|
||||
this.select_align.WaveSize = 1;
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.label10.Location = new System.Drawing.Point(3, 3);
|
||||
this.label10.Name = "label10";
|
||||
this.label10.Size = new System.Drawing.Size(88, 26);
|
||||
this.label10.TabIndex = 4;
|
||||
this.label10.Text = "Align";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F);
|
||||
this.label4.Location = new System.Drawing.Point(3, 147);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(704, 24);
|
||||
this.label4.TabIndex = 6;
|
||||
this.label4.Text = "控件配置";
|
||||
//
|
||||
// stackPanel2
|
||||
//
|
||||
this.stackPanel2.Controls.Add(this.buttonCZ);
|
||||
this.stackPanel2.Controls.Add(this.buttonClose);
|
||||
this.stackPanel2.Controls.Add(this.buttonOpen);
|
||||
this.stackPanel2.Location = new System.Drawing.Point(3, 109);
|
||||
this.stackPanel2.Name = "stackPanel2";
|
||||
this.stackPanel2.Size = new System.Drawing.Size(704, 32);
|
||||
this.stackPanel2.TabIndex = 5;
|
||||
this.stackPanel2.Text = "stackPanel2";
|
||||
//
|
||||
// buttonCZ
|
||||
//
|
||||
this.buttonCZ.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.buttonCZ.Location = new System.Drawing.Point(165, 3);
|
||||
this.buttonCZ.Name = "buttonCZ";
|
||||
this.buttonCZ.Size = new System.Drawing.Size(75, 26);
|
||||
this.buttonCZ.TabIndex = 4;
|
||||
this.buttonCZ.Text = "重 置";
|
||||
this.buttonCZ.Type = AntdUI.TTypeMini.Warn;
|
||||
this.buttonCZ.WaveSize = 0;
|
||||
this.buttonCZ.Click += new System.EventHandler(this.buttonCZ_Click);
|
||||
//
|
||||
// buttonClose
|
||||
//
|
||||
this.buttonClose.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.buttonClose.Location = new System.Drawing.Point(84, 3);
|
||||
this.buttonClose.Name = "buttonClose";
|
||||
this.buttonClose.Size = new System.Drawing.Size(75, 26);
|
||||
this.buttonClose.TabIndex = 3;
|
||||
this.buttonClose.Text = "关 闭";
|
||||
this.buttonClose.Type = AntdUI.TTypeMini.Error;
|
||||
this.buttonClose.WaveSize = 0;
|
||||
this.buttonClose.Click += new System.EventHandler(this.buttonClose_Click);
|
||||
//
|
||||
// buttonOpen
|
||||
//
|
||||
this.buttonOpen.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.buttonOpen.Location = new System.Drawing.Point(3, 3);
|
||||
this.buttonOpen.Name = "buttonOpen";
|
||||
this.buttonOpen.Size = new System.Drawing.Size(75, 26);
|
||||
this.buttonOpen.TabIndex = 2;
|
||||
this.buttonOpen.Text = "开 启";
|
||||
this.buttonOpen.Type = AntdUI.TTypeMini.Primary;
|
||||
this.buttonOpen.WaveSize = 0;
|
||||
this.buttonOpen.Click += new System.EventHandler(this.buttonOpen_Click);
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F);
|
||||
this.label3.Location = new System.Drawing.Point(3, 79);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(704, 24);
|
||||
this.label3.TabIndex = 4;
|
||||
this.label3.Text = "FloatButton没有工具箱控件,使用代码方式调用。";
|
||||
//
|
||||
// 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(704, 24);
|
||||
this.label2.TabIndex = 3;
|
||||
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(704, 40);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "FloatButton 按钮";
|
||||
//
|
||||
// FloatButtonDemo
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.stackPanel1);
|
||||
this.Name = "FloatButtonDemo";
|
||||
this.Size = new System.Drawing.Size(710, 372);
|
||||
this.stackPanel1.ResumeLayout(false);
|
||||
this.stackPanel6.ResumeLayout(false);
|
||||
this.stackPanel5.ResumeLayout(false);
|
||||
this.stackPanel4.ResumeLayout(false);
|
||||
this.stackPanel3.ResumeLayout(false);
|
||||
this.stackPanel2.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private AntdUI.StackPanel stackPanel1;
|
||||
private AntdUI.Label label1;
|
||||
private AntdUI.Label label2;
|
||||
private AntdUI.Label label3;
|
||||
private AntdUI.StackPanel stackPanel2;
|
||||
private AntdUI.Button buttonOpen;
|
||||
private AntdUI.Button buttonClose;
|
||||
private AntdUI.Label label11;
|
||||
private AntdUI.StackPanel stackPanel4;
|
||||
private AntdUI.InputNumber input_my;
|
||||
private AntdUI.Label label8;
|
||||
private AntdUI.InputNumber input_mx;
|
||||
private AntdUI.Label label7;
|
||||
private AntdUI.InputNumber input_size;
|
||||
private AntdUI.Label label9;
|
||||
private AntdUI.StackPanel stackPanel3;
|
||||
private AntdUI.Select select_vertical;
|
||||
private AntdUI.Label label5;
|
||||
private AntdUI.Select select_topmost;
|
||||
private AntdUI.Label label6;
|
||||
private AntdUI.Select select_align;
|
||||
private AntdUI.Label label10;
|
||||
private AntdUI.Label label4;
|
||||
private AntdUI.StackPanel stackPanel5;
|
||||
private AntdUI.InputNumber input_radius;
|
||||
private AntdUI.Label label12;
|
||||
private AntdUI.Select select_type;
|
||||
private AntdUI.Label label13;
|
||||
private AntdUI.Select select_shape;
|
||||
private AntdUI.Label label14;
|
||||
private AntdUI.StackPanel stackPanel6;
|
||||
private AntdUI.Label label17;
|
||||
private AntdUI.InputNumber input_badgesize;
|
||||
private AntdUI.Label label15;
|
||||
private AntdUI.Input input_badge;
|
||||
private AntdUI.ColorPicker colorPicker;
|
||||
private AntdUI.Label label16;
|
||||
private AntdUI.Button buttonCZ;
|
||||
}
|
||||
}
|
||||
178
Views/FloatButtonDemo.cs
Normal file
178
Views/FloatButtonDemo.cs
Normal file
@ -0,0 +1,178 @@
|
||||
using AntdUI;
|
||||
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 FloatButtonDemo : UserControl
|
||||
{
|
||||
private Form form;
|
||||
public Form floatButtonForm = null;
|
||||
public FloatButtonDemo(Form _form)
|
||||
{
|
||||
form = _form;
|
||||
InitializeComponent();
|
||||
//初始化下拉框
|
||||
InitSelectItems();
|
||||
//设置默认值
|
||||
SetDefaultSelectItem();
|
||||
// 加载浮动按钮
|
||||
LoadBaseFloatButton();
|
||||
}
|
||||
|
||||
private void InitSelectItems()
|
||||
{
|
||||
//初始化方向
|
||||
select_align.Items.Clear();
|
||||
foreach (TAlign align in Enum.GetValues(typeof(TAlign)))
|
||||
{
|
||||
select_align.Items.Add(align);
|
||||
}
|
||||
//初始化形状
|
||||
select_shape.Items.Clear();
|
||||
foreach (TShape shape in Enum.GetValues(typeof(TShape)))
|
||||
{
|
||||
select_shape.Items.Add(shape);
|
||||
}
|
||||
//初始化类型
|
||||
select_type.Items.Clear();
|
||||
foreach (TTypeMini type in Enum.GetValues(typeof(TTypeMini)))
|
||||
{
|
||||
select_type.Items.Add(type);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetDefaultSelectItem()
|
||||
{
|
||||
select_align.SelectedIndex = 7;
|
||||
select_shape.SelectedIndex = 0;
|
||||
select_type.SelectedIndex = 0;
|
||||
select_topmost.SelectedIndex = 1;
|
||||
select_vertical.SelectedIndex = 0;
|
||||
|
||||
input_size.Text = "40";
|
||||
input_mx.Text = "24";
|
||||
input_my.Text = "24";
|
||||
input_radius.Text = "6";
|
||||
input_badge.Text = "";
|
||||
input_badgesize.Text = "6";
|
||||
colorPicker.Value = Color.FromArgb(22, 119, 255);
|
||||
|
||||
}
|
||||
|
||||
private void LoadBaseFloatButton()
|
||||
{
|
||||
if (floatButtonForm == null || floatButtonForm.IsDisposed)
|
||||
{
|
||||
var buttonType = TTypeMini.Default;
|
||||
switch (select_type.SelectedIndex)
|
||||
{
|
||||
case 0:
|
||||
buttonType = TTypeMini.Default;
|
||||
break;
|
||||
case 1:
|
||||
buttonType = TTypeMini.Primary;
|
||||
break;
|
||||
case 2:
|
||||
buttonType = TTypeMini.Success;
|
||||
break;
|
||||
case 3:
|
||||
buttonType = TTypeMini.Error;
|
||||
break;
|
||||
case 4:
|
||||
buttonType = TTypeMini.Warn;
|
||||
break;
|
||||
case 5:
|
||||
buttonType = TTypeMini.Info;
|
||||
break;
|
||||
}
|
||||
floatButtonForm = AntdUI.FloatButton.open(new AntdUI.FloatButton.Config(form, new AntdUI.FloatButton.ConfigBtn[]
|
||||
{
|
||||
// 使用 svg 图片
|
||||
new AntdUI.FloatButton.ConfigBtn("按钮1","",true)
|
||||
{
|
||||
Tooltip = "SVG图片按钮",
|
||||
IconSvg = "<svg t=\"1723689594681\" class=\"icon\" viewBox=\"0 0 1024 1024\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" p-id=\"3131\" width=\"200\" height=\"200\"><path d=\"M527.034926 942.620551c-247.174496 0-447.543989-200.370517-447.543989-447.538873 0-190.783161 119.585609-353.238137 287.701514-417.622516l0 69.242014c-131.960451 60.646242-223.765343 193.624882-223.765343 348.381525 0 211.845872 171.759899 383.606795 383.606795 383.606795 211.845872 0 383.605771-171.762969 383.605771-383.606795 0-154.75562-91.811032-287.736307-223.771483-348.411201L686.868191 77.459163c168.113859 64.384379 287.702538 226.840378 287.702538 417.622516C974.573799 742.250034 774.203282 942.620551 527.034926 942.620551L527.034926 942.620551zM495.066841 47.538713l63.931055 0L558.997895 496.231875l-63.931055 0L495.066841 47.538713 495.066841 47.538713z\" fill=\"#272636\" p-id=\"3132\"></path></svg>",
|
||||
Shape = select_shape.SelectedIndex == 0 ? TShape.Default :(select_shape.SelectedIndex == 1 ? TShape.Round : TShape.Circle),
|
||||
Type = buttonType,
|
||||
Radius = input_radius.Text == "" ? 6 : Convert.ToInt32(input_radius.Text),
|
||||
Badge = input_badge.Text,
|
||||
BadgeSize = input_badgesize.Text == "" ? 6 : Convert.ToInt32(input_badgesize.Text),
|
||||
BadgeBack = colorPicker.Value,
|
||||
},
|
||||
// 使用资源图片
|
||||
new AntdUI.FloatButton.ConfigBtn("按钮2", Properties.Resources.关闭)
|
||||
{
|
||||
Tooltip = "资源图片按钮",
|
||||
Shape = select_shape.SelectedIndex == 0 ? TShape.Default :(select_shape.SelectedIndex == 1 ? TShape.Round : TShape.Circle),
|
||||
Type = buttonType,
|
||||
Radius = input_radius.Text == "" ? 6 : Convert.ToInt32(input_radius.Text),
|
||||
Badge = input_badge.Text,
|
||||
BadgeSize = input_badgesize.Text == "" ? 6 : Convert.ToInt32(input_badgesize.Text),
|
||||
BadgeBack = colorPicker.Value,
|
||||
},
|
||||
|
||||
new AntdUI.FloatButton.ConfigBtn("按钮3", "关闭")
|
||||
{
|
||||
Tooltip = "文本按钮",
|
||||
Shape = select_shape.SelectedIndex == 0 ? TShape.Default :(select_shape.SelectedIndex == 1 ? TShape.Round : TShape.Circle),
|
||||
Type = buttonType,
|
||||
Radius = input_radius.Text == "" ? 6 : Convert.ToInt32(input_radius.Text),
|
||||
Badge = input_badge.Text,
|
||||
BadgeSize = input_badgesize.Text == "" ? 6 : Convert.ToInt32(input_badgesize.Text),
|
||||
BadgeBack = colorPicker.Value,
|
||||
},
|
||||
|
||||
}, btn =>
|
||||
{
|
||||
//回调事件
|
||||
})
|
||||
{
|
||||
// 配置
|
||||
Font = new Font("Microsoft JhengHei UI", 9F, FontStyle.Regular, GraphicsUnit.Point),
|
||||
Control = null,
|
||||
Align = (TAlign)select_align.SelectedIndex,
|
||||
Vertical = select_vertical.SelectedIndex == 0,
|
||||
TopMost = select_topmost.SelectedIndex == 0,
|
||||
Size = input_size.Text == "" ? 40 : Convert.ToInt32(input_size.Text),
|
||||
MarginX = input_mx.Text == "" ? 24 : Convert.ToInt32(input_mx.Text),
|
||||
MarginY = input_my.Text == "" ? 24 : Convert.ToInt32(input_my.Text),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
// 添加清理逻辑
|
||||
public void CloseFloatButtonForm()
|
||||
{
|
||||
if (floatButtonForm != null)
|
||||
{
|
||||
floatButtonForm?.Close();
|
||||
floatButtonForm?.Dispose();
|
||||
floatButtonForm = null;
|
||||
}
|
||||
}
|
||||
|
||||
private void buttonCZ_Click(object sender, EventArgs e)
|
||||
{
|
||||
SetDefaultSelectItem();
|
||||
}
|
||||
|
||||
private void buttonOpen_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseFloatButtonForm();
|
||||
LoadBaseFloatButton();
|
||||
}
|
||||
|
||||
private void buttonClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
CloseFloatButtonForm();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Views/FloatButtonDemo.resx
Normal file
120
Views/FloatButtonDemo.resx
Normal file
@ -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>
|
||||
@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="AntdUI" version="1.5.1" targetFramework="net48" />
|
||||
<package id="AntdUI" version="1.5.2" targetFramework="net48" />
|
||||
</packages>
|
||||
BIN
packages/AntdUI.1.5.1/AntdUI.1.5.1.nupkg
vendored
BIN
packages/AntdUI.1.5.1/AntdUI.1.5.1.nupkg
vendored
Binary file not shown.
BIN
packages/AntdUI.1.5.1/lib/net40/AntdUI.dll
vendored
BIN
packages/AntdUI.1.5.1/lib/net40/AntdUI.dll
vendored
Binary file not shown.
BIN
packages/AntdUI.1.5.1/lib/net46/AntdUI.dll
vendored
BIN
packages/AntdUI.1.5.1/lib/net46/AntdUI.dll
vendored
Binary file not shown.
BIN
packages/AntdUI.1.5.1/lib/net48/AntdUI.dll
vendored
BIN
packages/AntdUI.1.5.1/lib/net48/AntdUI.dll
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
14921
packages/AntdUI.1.5.1/lib/net8.0-windows7.0/AntdUI.xml
vendored
14921
packages/AntdUI.1.5.1/lib/net8.0-windows7.0/AntdUI.xml
vendored
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
packages/AntdUI.1.5.2/AntdUI.1.5.2.nupkg
vendored
Normal file
BIN
packages/AntdUI.1.5.2/AntdUI.1.5.2.nupkg
vendored
Normal file
Binary file not shown.
BIN
packages/AntdUI.1.5.2/lib/net40/AntdUI.dll
vendored
Normal file
BIN
packages/AntdUI.1.5.2/lib/net40/AntdUI.dll
vendored
Normal file
Binary file not shown.
@ -4806,11 +4806,6 @@
|
||||
间距
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.FixedHeader">
|
||||
<summary>
|
||||
固定表头
|
||||
@ -4846,6 +4841,21 @@
|
||||
圆角
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.SwitchSize">
|
||||
<summary>
|
||||
开关大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.TreeButtonSize">
|
||||
<summary>
|
||||
树开关按钮大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.ClipboardCopy">
|
||||
<summary>
|
||||
行复制
|
||||
BIN
packages/AntdUI.1.5.2/lib/net46/AntdUI.dll
vendored
Normal file
BIN
packages/AntdUI.1.5.2/lib/net46/AntdUI.dll
vendored
Normal file
Binary file not shown.
@ -4806,11 +4806,6 @@
|
||||
间距
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.FixedHeader">
|
||||
<summary>
|
||||
固定表头
|
||||
@ -4846,6 +4841,21 @@
|
||||
圆角
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.SwitchSize">
|
||||
<summary>
|
||||
开关大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.TreeButtonSize">
|
||||
<summary>
|
||||
树开关按钮大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.ClipboardCopy">
|
||||
<summary>
|
||||
行复制
|
||||
BIN
packages/AntdUI.1.5.2/lib/net48/AntdUI.dll
vendored
Normal file
BIN
packages/AntdUI.1.5.2/lib/net48/AntdUI.dll
vendored
Normal file
Binary file not shown.
@ -4806,11 +4806,6 @@
|
||||
间距
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.FixedHeader">
|
||||
<summary>
|
||||
固定表头
|
||||
@ -4846,6 +4841,21 @@
|
||||
圆角
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.SwitchSize">
|
||||
<summary>
|
||||
开关大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.TreeButtonSize">
|
||||
<summary>
|
||||
树开关按钮大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.ClipboardCopy">
|
||||
<summary>
|
||||
行复制
|
||||
BIN
packages/AntdUI.1.5.2/lib/net6.0-windows7.0/AntdUI.dll
vendored
Normal file
BIN
packages/AntdUI.1.5.2/lib/net6.0-windows7.0/AntdUI.dll
vendored
Normal file
Binary file not shown.
@ -4806,11 +4806,6 @@
|
||||
间距
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.FixedHeader">
|
||||
<summary>
|
||||
固定表头
|
||||
@ -4846,6 +4841,21 @@
|
||||
圆角
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.CheckSize">
|
||||
<summary>
|
||||
复选框大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.SwitchSize">
|
||||
<summary>
|
||||
开关大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.TreeButtonSize">
|
||||
<summary>
|
||||
树开关按钮大小
|
||||
</summary>
|
||||
</member>
|
||||
<member name="P:AntdUI.Table.ClipboardCopy">
|
||||
<summary>
|
||||
行复制
|
||||
BIN
packages/AntdUI.1.5.2/lib/net8.0-windows7.0/AntdUI.dll
vendored
Normal file
BIN
packages/AntdUI.1.5.2/lib/net8.0-windows7.0/AntdUI.dll
vendored
Normal file
Binary file not shown.
14931
packages/AntdUI.1.5.2/lib/net8.0-windows7.0/AntdUI.xml
vendored
Normal file
14931
packages/AntdUI.1.5.2/lib/net8.0-windows7.0/AntdUI.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Loading…
x
Reference in New Issue
Block a user