diff --git a/Views/ColorPickerDemo.Designer.cs b/Views/ColorPickerDemo.Designer.cs index 883d132..f732ac7 100644 --- a/Views/ColorPickerDemo.Designer.cs +++ b/Views/ColorPickerDemo.Designer.cs @@ -36,12 +36,36 @@ this.divider1 = new AntdUI.Divider(); this.label2 = new AntdUI.Label(); this.label1 = new AntdUI.Label(); + this.label4 = new AntdUI.Label(); + this.flowPanel2 = new AntdUI.FlowPanel(); + this.colorPicker3 = new AntdUI.ColorPicker(); + this.colorPicker4 = new AntdUI.ColorPicker(); + this.label5 = new AntdUI.Label(); + this.flowPanel3 = new AntdUI.FlowPanel(); + this.colorPicker5 = new AntdUI.ColorPicker(); + this.label6 = new AntdUI.Label(); + this.flowPanel4 = new AntdUI.FlowPanel(); + this.colorPicker6 = new AntdUI.ColorPicker(); + this.colorPicker7 = new AntdUI.ColorPicker(); + this.colorPicker8 = new AntdUI.ColorPicker(); + this.colorPicker9 = new AntdUI.ColorPicker(); + this.colorPicker10 = new AntdUI.ColorPicker(); + this.colorPicker11 = new AntdUI.ColorPicker(); this.stackPanel1.SuspendLayout(); this.flowPanel1.SuspendLayout(); + this.flowPanel2.SuspendLayout(); + this.flowPanel3.SuspendLayout(); + this.flowPanel4.SuspendLayout(); this.SuspendLayout(); // // stackPanel1 // + this.stackPanel1.Controls.Add(this.flowPanel4); + this.stackPanel1.Controls.Add(this.label6); + this.stackPanel1.Controls.Add(this.flowPanel3); + this.stackPanel1.Controls.Add(this.label5); + this.stackPanel1.Controls.Add(this.flowPanel2); + this.stackPanel1.Controls.Add(this.label4); this.stackPanel1.Controls.Add(this.flowPanel1); this.stackPanel1.Controls.Add(this.label3); this.stackPanel1.Controls.Add(this.divider1); @@ -50,7 +74,7 @@ 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, 386); + this.stackPanel1.Size = new System.Drawing.Size(700, 435); this.stackPanel1.TabIndex = 0; this.stackPanel1.Text = "stackPanel1"; this.stackPanel1.Vertical = true; @@ -121,14 +145,198 @@ this.label1.TabIndex = 5; this.label1.Text = "ColorPicker 颜色选择器"; // + // 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, 171); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(694, 24); + this.label4.TabIndex = 10; + this.label4.Text = "触发方式"; + // + // flowPanel2 + // + this.flowPanel2.Controls.Add(this.colorPicker4); + this.flowPanel2.Controls.Add(this.colorPicker3); + this.flowPanel2.Location = new System.Drawing.Point(3, 201); + this.flowPanel2.Name = "flowPanel2"; + this.flowPanel2.Size = new System.Drawing.Size(694, 38); + this.flowPanel2.TabIndex = 11; + this.flowPanel2.Text = "flowPanel2"; + // + // colorPicker3 + // + this.colorPicker3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker3.Location = new System.Drawing.Point(3, 3); + this.colorPicker3.Name = "colorPicker3"; + this.colorPicker3.ShowText = true; + this.colorPicker3.Size = new System.Drawing.Size(105, 32); + this.colorPicker3.TabIndex = 1; + this.colorPicker3.Text = "colorPicker3"; + this.colorPicker3.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker3.WaveSize = 0; + // + // colorPicker4 + // + this.colorPicker4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker4.Location = new System.Drawing.Point(114, 3); + this.colorPicker4.Name = "colorPicker4"; + this.colorPicker4.ShowText = true; + this.colorPicker4.Size = new System.Drawing.Size(105, 32); + this.colorPicker4.TabIndex = 2; + this.colorPicker4.Text = "colorPicker4"; + this.colorPicker4.Trigger = AntdUI.Trigger.Hover; + this.colorPicker4.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker4.WaveSize = 0; + // + // 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, 245); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(694, 24); + this.label5.TabIndex = 12; + this.label5.Text = "无透明度"; + // + // flowPanel3 + // + this.flowPanel3.Controls.Add(this.colorPicker5); + this.flowPanel3.Location = new System.Drawing.Point(3, 275); + this.flowPanel3.Name = "flowPanel3"; + this.flowPanel3.Size = new System.Drawing.Size(694, 38); + this.flowPanel3.TabIndex = 13; + this.flowPanel3.Text = "flowPanel3"; + // + // colorPicker5 + // + this.colorPicker5.DisabledAlpha = true; + this.colorPicker5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker5.Location = new System.Drawing.Point(3, 3); + this.colorPicker5.Name = "colorPicker5"; + this.colorPicker5.ShowText = true; + this.colorPicker5.Size = new System.Drawing.Size(105, 32); + this.colorPicker5.TabIndex = 2; + this.colorPicker5.Text = "colorPicker5"; + this.colorPicker5.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker5.WaveSize = 0; + // + // 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, 319); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(694, 24); + this.label6.TabIndex = 14; + this.label6.Text = "弹出位置"; + // + // flowPanel4 + // + this.flowPanel4.Controls.Add(this.colorPicker11); + this.flowPanel4.Controls.Add(this.colorPicker10); + this.flowPanel4.Controls.Add(this.colorPicker9); + this.flowPanel4.Controls.Add(this.colorPicker8); + this.flowPanel4.Controls.Add(this.colorPicker7); + this.flowPanel4.Controls.Add(this.colorPicker6); + this.flowPanel4.Location = new System.Drawing.Point(3, 349); + this.flowPanel4.Name = "flowPanel4"; + this.flowPanel4.Size = new System.Drawing.Size(694, 38); + this.flowPanel4.TabIndex = 15; + this.flowPanel4.Text = "flowPanel4"; + // + // colorPicker6 + // + this.colorPicker6.DisabledAlpha = true; + this.colorPicker6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker6.Location = new System.Drawing.Point(3, 3); + this.colorPicker6.Name = "colorPicker6"; + this.colorPicker6.ShowText = true; + this.colorPicker6.Size = new System.Drawing.Size(105, 32); + this.colorPicker6.TabIndex = 2; + this.colorPicker6.Text = "colorPicker6"; + this.colorPicker6.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker6.WaveSize = 0; + // + // colorPicker7 + // + this.colorPicker7.DisabledAlpha = true; + this.colorPicker7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker7.Location = new System.Drawing.Point(114, 3); + this.colorPicker7.Name = "colorPicker7"; + this.colorPicker7.Placement = AntdUI.TAlignFrom.Bottom; + this.colorPicker7.ShowText = true; + this.colorPicker7.Size = new System.Drawing.Size(105, 32); + this.colorPicker7.TabIndex = 3; + this.colorPicker7.Text = "colorPicker7"; + this.colorPicker7.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker7.WaveSize = 0; + // + // colorPicker8 + // + this.colorPicker8.DisabledAlpha = true; + this.colorPicker8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker8.Location = new System.Drawing.Point(225, 3); + this.colorPicker8.Name = "colorPicker8"; + this.colorPicker8.Placement = AntdUI.TAlignFrom.BR; + this.colorPicker8.ShowText = true; + this.colorPicker8.Size = new System.Drawing.Size(105, 32); + this.colorPicker8.TabIndex = 4; + this.colorPicker8.Text = "colorPicker8"; + this.colorPicker8.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker8.WaveSize = 0; + // + // colorPicker9 + // + this.colorPicker9.DisabledAlpha = true; + this.colorPicker9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker9.Location = new System.Drawing.Point(336, 3); + this.colorPicker9.Name = "colorPicker9"; + this.colorPicker9.Placement = AntdUI.TAlignFrom.TR; + this.colorPicker9.ShowText = true; + this.colorPicker9.Size = new System.Drawing.Size(105, 32); + this.colorPicker9.TabIndex = 5; + this.colorPicker9.Text = "colorPicker9"; + this.colorPicker9.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker9.WaveSize = 0; + // + // colorPicker10 + // + this.colorPicker10.DisabledAlpha = true; + this.colorPicker10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker10.Location = new System.Drawing.Point(447, 3); + this.colorPicker10.Name = "colorPicker10"; + this.colorPicker10.Placement = AntdUI.TAlignFrom.Top; + this.colorPicker10.ShowText = true; + this.colorPicker10.Size = new System.Drawing.Size(105, 32); + this.colorPicker10.TabIndex = 6; + this.colorPicker10.Text = "colorPicker10"; + this.colorPicker10.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker10.WaveSize = 0; + // + // colorPicker11 + // + this.colorPicker11.DisabledAlpha = true; + this.colorPicker11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.colorPicker11.Location = new System.Drawing.Point(558, 3); + this.colorPicker11.Name = "colorPicker11"; + this.colorPicker11.Placement = AntdUI.TAlignFrom.TL; + this.colorPicker11.ShowText = true; + this.colorPicker11.Size = new System.Drawing.Size(105, 32); + this.colorPicker11.TabIndex = 7; + this.colorPicker11.Text = "colorPicker11"; + this.colorPicker11.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); + this.colorPicker11.WaveSize = 0; + // // ColorPickerDemo // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; this.Controls.Add(this.stackPanel1); this.Name = "ColorPickerDemo"; - this.Size = new System.Drawing.Size(700, 386); + this.Size = new System.Drawing.Size(700, 435); this.stackPanel1.ResumeLayout(false); this.flowPanel1.ResumeLayout(false); + this.flowPanel2.ResumeLayout(false); + this.flowPanel3.ResumeLayout(false); + this.flowPanel4.ResumeLayout(false); this.ResumeLayout(false); } @@ -143,5 +351,20 @@ private AntdUI.FlowPanel flowPanel1; private AntdUI.ColorPicker colorPicker1; private AntdUI.ColorPicker colorPicker2; + private AntdUI.FlowPanel flowPanel2; + private AntdUI.ColorPicker colorPicker4; + private AntdUI.ColorPicker colorPicker3; + private AntdUI.Label label4; + private AntdUI.FlowPanel flowPanel3; + private AntdUI.ColorPicker colorPicker5; + private AntdUI.Label label5; + private AntdUI.FlowPanel flowPanel4; + private AntdUI.ColorPicker colorPicker11; + private AntdUI.ColorPicker colorPicker10; + private AntdUI.ColorPicker colorPicker9; + private AntdUI.ColorPicker colorPicker8; + private AntdUI.ColorPicker colorPicker7; + private AntdUI.ColorPicker colorPicker6; + private AntdUI.Label label6; } } diff --git a/Views/FloatButtonDemo.Designer.cs b/Views/FloatButtonDemo.Designer.cs index 10beb63..719c5bc 100644 --- a/Views/FloatButtonDemo.Designer.cs +++ b/Views/FloatButtonDemo.Designer.cs @@ -29,24 +29,6 @@ private void InitializeComponent() { this.stackPanel1 = new AntdUI.StackPanel(); - this.stackPanel2 = new AntdUI.StackPanel(); - this.buttonCZ = new AntdUI.Button(); - this.buttonClose = new AntdUI.Button(); - 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_round = 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(); @@ -66,12 +48,34 @@ this.label3 = new AntdUI.Label(); this.label2 = new AntdUI.Label(); this.label1 = new AntdUI.Label(); + this.stackPanel7 = new AntdUI.StackPanel(); + this.input_gap = new AntdUI.InputNumber(); + this.label20 = new AntdUI.Label(); + this.stackPanel2 = new AntdUI.StackPanel(); + this.buttonCZ = new AntdUI.Button(); + this.buttonClose = new AntdUI.Button(); + 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_round = new AntdUI.Select(); + this.label14 = new AntdUI.Label(); + this.label11 = new AntdUI.Label(); this.stackPanel1.SuspendLayout(); + this.stackPanel4.SuspendLayout(); + this.stackPanel3.SuspendLayout(); + this.stackPanel7.SuspendLayout(); this.stackPanel2.SuspendLayout(); this.stackPanel6.SuspendLayout(); this.stackPanel5.SuspendLayout(); - this.stackPanel4.SuspendLayout(); - this.stackPanel3.SuspendLayout(); this.SuspendLayout(); // // stackPanel1 @@ -80,6 +84,7 @@ this.stackPanel1.Controls.Add(this.stackPanel6); this.stackPanel1.Controls.Add(this.stackPanel5); this.stackPanel1.Controls.Add(this.label11); + this.stackPanel1.Controls.Add(this.stackPanel7); this.stackPanel1.Controls.Add(this.stackPanel4); this.stackPanel1.Controls.Add(this.stackPanel3); this.stackPanel1.Controls.Add(this.label4); @@ -95,217 +100,6 @@ this.stackPanel1.Text = "stackPanel1"; this.stackPanel1.Vertical = true; // - // stackPanel2 - // - this.stackPanel2.Controls.Add(this.buttonCZ); - this.stackPanel2.Controls.Add(this.buttonClose); - this.stackPanel2.Location = new System.Drawing.Point(3, 339); - this.stackPanel2.Name = "stackPanel2"; - this.stackPanel2.Size = new System.Drawing.Size(694, 38); - this.stackPanel2.TabIndex = 21; - 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(84, 3); - this.buttonCZ.Name = "buttonCZ"; - this.buttonCZ.Size = new System.Drawing.Size(75, 32); - this.buttonCZ.TabIndex = 4; - this.buttonCZ.Text = "重 置"; - this.buttonCZ.Type = AntdUI.TTypeMini.Warn; - this.buttonCZ.WaveSize = 0; - // - // 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(3, 3); - this.buttonClose.Name = "buttonClose"; - this.buttonClose.Size = new System.Drawing.Size(75, 32); - this.buttonClose.TabIndex = 3; - this.buttonClose.Text = "关 闭"; - this.buttonClose.Type = AntdUI.TTypeMini.Error; - this.buttonClose.WaveSize = 0; - // - // 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, 301); - this.stackPanel6.Name = "stackPanel6"; - this.stackPanel6.Size = new System.Drawing.Size(694, 32); - this.stackPanel6.TabIndex = 20; - this.stackPanel6.Text = "stackPanel6"; - // - // colorPicker - // - this.colorPicker.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.colorPicker.Location = new System.Drawing.Point(459, 3); - this.colorPicker.Name = "colorPicker"; - this.colorPicker.ShowText = true; - this.colorPicker.Size = new System.Drawing.Size(100, 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(361, 3); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(92, 26); - this.label16.TabIndex = 14; - this.label16.Text = "BadgeBack"; - // - // input_badgesize - // - this.input_badgesize.DecimalPlaces = 2; - this.input_badgesize.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.input_badgesize.Location = new System.Drawing.Point(280, 3); - this.input_badgesize.Minimum = new decimal(new int[] { - 0, - 0, - 0, - 0}); - 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.00"; - this.input_badgesize.Value = new decimal(new int[] { - 6, - 0, - 0, - 0}); - this.input_badgesize.WaveSize = 0; - // - // 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(182, 3); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(92, 26); - this.label15.TabIndex = 12; - this.label15.Text = "BadgeSize"; - // - // input_badge - // - this.input_badge.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.input_badge.Location = new System.Drawing.Point(101, 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 = 0; - // - // 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(92, 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_round); - this.stackPanel5.Controls.Add(this.label14); - this.stackPanel5.Location = new System.Drawing.Point(3, 263); - this.stackPanel5.Name = "stackPanel5"; - this.stackPanel5.Size = new System.Drawing.Size(694, 32); - this.stackPanel5.TabIndex = 19; - this.stackPanel5.Text = "stackPanel5"; - // - // input_radius - // - this.input_radius.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.input_radius.Location = new System.Drawing.Point(459, 3); - this.input_radius.Minimum = new decimal(new int[] { - 0, - 0, - 0, - 0}); - this.input_radius.Name = "input_radius"; - this.input_radius.Size = new System.Drawing.Size(100, 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 = 0; - // - // 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(361, 3); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(92, 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(280, 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 = 0; - // - // 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(182, 3); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(92, 26); - this.label13.TabIndex = 8; - this.label13.Text = "Type"; - // - // select_round - // - this.select_round.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.select_round.Items.AddRange(new object[] { - "True", - "False"}); - this.select_round.List = true; - this.select_round.Location = new System.Drawing.Point(101, 3); - this.select_round.Name = "select_round"; - this.select_round.SelectedIndex = 1; - this.select_round.SelectedValue = "False"; - this.select_round.Size = new System.Drawing.Size(75, 26); - this.select_round.TabIndex = 5; - this.select_round.Text = "False"; - this.select_round.WaveSize = 0; - // - // 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(92, 26); - this.label14.TabIndex = 4; - this.label14.Text = "Round"; - // - // label11 - // - this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F); - this.label11.Location = new System.Drawing.Point(3, 233); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(694, 24); - this.label11.TabIndex = 18; - this.label11.Text = "按钮配置"; - // // stackPanel4 // this.stackPanel4.Controls.Add(this.input_my); @@ -532,6 +326,256 @@ this.label1.TabIndex = 2; this.label1.Text = "FloatButton 悬浮按钮"; // + // stackPanel7 + // + this.stackPanel7.Controls.Add(this.input_gap); + this.stackPanel7.Controls.Add(this.label20); + this.stackPanel7.Location = new System.Drawing.Point(3, 233); + this.stackPanel7.Name = "stackPanel7"; + this.stackPanel7.Size = new System.Drawing.Size(694, 32); + this.stackPanel7.TabIndex = 22; + this.stackPanel7.Text = "stackPanel7"; + // + // input_gap + // + this.input_gap.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.input_gap.Location = new System.Drawing.Point(101, 3); + this.input_gap.Minimum = new decimal(new int[] { + 0, + 0, + 0, + 0}); + this.input_gap.Name = "input_gap"; + this.input_gap.Size = new System.Drawing.Size(75, 26); + this.input_gap.TabIndex = 5; + this.input_gap.Text = "40"; + this.input_gap.Value = new decimal(new int[] { + 40, + 0, + 0, + 0}); + this.input_gap.WaveSize = 0; + // + // label20 + // + this.label20.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label20.Location = new System.Drawing.Point(3, 3); + this.label20.Name = "label20"; + this.label20.Size = new System.Drawing.Size(92, 26); + this.label20.TabIndex = 4; + this.label20.Text = "Gap"; + // + // stackPanel2 + // + this.stackPanel2.Controls.Add(this.buttonCZ); + this.stackPanel2.Controls.Add(this.buttonClose); + this.stackPanel2.Location = new System.Drawing.Point(3, 377); + this.stackPanel2.Name = "stackPanel2"; + this.stackPanel2.Size = new System.Drawing.Size(694, 38); + this.stackPanel2.TabIndex = 26; + 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(84, 3); + this.buttonCZ.Name = "buttonCZ"; + this.buttonCZ.Size = new System.Drawing.Size(75, 32); + this.buttonCZ.TabIndex = 4; + this.buttonCZ.Text = "重 置"; + this.buttonCZ.Type = AntdUI.TTypeMini.Warn; + this.buttonCZ.WaveSize = 0; + // + // 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(3, 3); + this.buttonClose.Name = "buttonClose"; + this.buttonClose.Size = new System.Drawing.Size(75, 32); + this.buttonClose.TabIndex = 3; + this.buttonClose.Text = "关 闭"; + this.buttonClose.Type = AntdUI.TTypeMini.Error; + this.buttonClose.WaveSize = 0; + // + // 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, 339); + this.stackPanel6.Name = "stackPanel6"; + this.stackPanel6.Size = new System.Drawing.Size(694, 32); + this.stackPanel6.TabIndex = 25; + this.stackPanel6.Text = "stackPanel6"; + // + // colorPicker + // + this.colorPicker.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.colorPicker.Location = new System.Drawing.Point(459, 3); + this.colorPicker.Name = "colorPicker"; + this.colorPicker.ShowText = true; + this.colorPicker.Size = new System.Drawing.Size(100, 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(361, 3); + this.label16.Name = "label16"; + this.label16.Size = new System.Drawing.Size(92, 26); + this.label16.TabIndex = 14; + this.label16.Text = "BadgeBack"; + // + // input_badgesize + // + this.input_badgesize.DecimalPlaces = 2; + this.input_badgesize.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.input_badgesize.Location = new System.Drawing.Point(280, 3); + this.input_badgesize.Minimum = new decimal(new int[] { + 0, + 0, + 0, + 0}); + 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.00"; + this.input_badgesize.Value = new decimal(new int[] { + 6, + 0, + 0, + 0}); + this.input_badgesize.WaveSize = 0; + // + // 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(182, 3); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(92, 26); + this.label15.TabIndex = 12; + this.label15.Text = "BadgeSize"; + // + // input_badge + // + this.input_badge.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.input_badge.Location = new System.Drawing.Point(101, 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 = 0; + // + // 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(92, 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_round); + this.stackPanel5.Controls.Add(this.label14); + this.stackPanel5.Location = new System.Drawing.Point(3, 301); + this.stackPanel5.Name = "stackPanel5"; + this.stackPanel5.Size = new System.Drawing.Size(694, 32); + this.stackPanel5.TabIndex = 24; + this.stackPanel5.Text = "stackPanel5"; + // + // input_radius + // + this.input_radius.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.input_radius.Location = new System.Drawing.Point(459, 3); + this.input_radius.Minimum = new decimal(new int[] { + 0, + 0, + 0, + 0}); + this.input_radius.Name = "input_radius"; + this.input_radius.Size = new System.Drawing.Size(100, 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 = 0; + // + // 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(361, 3); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(92, 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(280, 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 = 0; + // + // 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(182, 3); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(92, 26); + this.label13.TabIndex = 8; + this.label13.Text = "Type"; + // + // select_round + // + this.select_round.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.select_round.Items.AddRange(new object[] { + "True", + "False"}); + this.select_round.List = true; + this.select_round.Location = new System.Drawing.Point(101, 3); + this.select_round.Name = "select_round"; + this.select_round.SelectedIndex = 1; + this.select_round.SelectedValue = "False"; + this.select_round.Size = new System.Drawing.Size(75, 26); + this.select_round.TabIndex = 5; + this.select_round.Text = "False"; + this.select_round.WaveSize = 0; + // + // 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(92, 26); + this.label14.TabIndex = 4; + this.label14.Text = "Round"; + // + // label11 + // + this.label11.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F); + this.label11.Location = new System.Drawing.Point(3, 271); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(694, 24); + this.label11.TabIndex = 23; + this.label11.Text = "按钮配置"; + // // FloatButtonDemo // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; @@ -540,11 +584,12 @@ this.Size = new System.Drawing.Size(700, 434); this.Load += new System.EventHandler(this.FloatButtonDemo_Load); this.stackPanel1.ResumeLayout(false); + this.stackPanel4.ResumeLayout(false); + this.stackPanel3.ResumeLayout(false); + this.stackPanel7.ResumeLayout(false); this.stackPanel2.ResumeLayout(false); this.stackPanel6.ResumeLayout(false); this.stackPanel5.ResumeLayout(false); - this.stackPanel4.ResumeLayout(false); - this.stackPanel3.ResumeLayout(false); this.ResumeLayout(false); } @@ -555,21 +600,6 @@ private AntdUI.Label label1; private AntdUI.Label label2; private AntdUI.Label label3; - private AntdUI.StackPanel stackPanel6; - private AntdUI.ColorPicker colorPicker; - private AntdUI.Label label16; - private AntdUI.InputNumber input_badgesize; - private AntdUI.Label label15; - private AntdUI.Input input_badge; - private AntdUI.Label label17; - 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_round; - private AntdUI.Label label14; - private AntdUI.Label label11; private AntdUI.StackPanel stackPanel4; private AntdUI.InputNumber input_my; private AntdUI.Label label8; @@ -589,5 +619,23 @@ private AntdUI.StackPanel stackPanel2; private AntdUI.Button buttonCZ; private AntdUI.Button buttonClose; + private AntdUI.StackPanel stackPanel6; + private AntdUI.ColorPicker colorPicker; + private AntdUI.Label label16; + private AntdUI.InputNumber input_badgesize; + private AntdUI.Label label15; + private AntdUI.Input input_badge; + private AntdUI.Label label17; + 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_round; + private AntdUI.Label label14; + private AntdUI.Label label11; + private AntdUI.StackPanel stackPanel7; + private AntdUI.InputNumber input_gap; + private AntdUI.Label label20; } } diff --git a/Views/FloatButtonDemo.cs b/Views/FloatButtonDemo.cs index 9b6894c..482ca61 100644 --- a/Views/FloatButtonDemo.cs +++ b/Views/FloatButtonDemo.cs @@ -41,6 +41,7 @@ namespace AntdUIDemo.Views input_size.ValueChanged += input_decimalvalue_ValeChanged; input_mx.ValueChanged += input_decimalvalue_ValeChanged; input_my.ValueChanged += input_decimalvalue_ValeChanged; + input_gap.ValueChanged += input_decimalvalue_ValeChanged; input_radius.ValueChanged += input_decimalvalue_ValeChanged; input_badgesize.ValueChanged += input_decimalvalue_ValeChanged; @@ -78,6 +79,7 @@ namespace AntdUIDemo.Views input_size.Value = 40; input_mx.Value = 24; input_my.Value = 24; + input_gap.Value = 40; input_radius.Value = 6; input_badge.Text = ""; input_badgesize.Value = 6; @@ -149,6 +151,8 @@ namespace AntdUIDemo.Views MarginX = (int)input_mx.Value, //相对于Align位置Y轴偏移 MarginY = (int)input_my.Value, + //按钮间距 + Gap = (int)input_gap.Value, }); } }