mirror of
https://github.com/colhountech/DarkUI.Net5.git
synced 2025-07-02 07:09:27 +03:00
Added DropdownList example
This commit is contained in:
parent
94670aac43
commit
1f1d367c07
78
Example/Forms/Docking/DockProperties.Designer.cs
generated
78
Example/Forms/Docking/DockProperties.Designer.cs
generated
@ -42,20 +42,26 @@ namespace Example
|
||||
this.darkCheckBox2 = new DarkUI.Controls.DarkCheckBox();
|
||||
this.darkCheckBox1 = new DarkUI.Controls.DarkCheckBox();
|
||||
this.darkTitle2 = new DarkUI.Controls.DarkTitle();
|
||||
this.darkScrollBar1 = new DarkUI.Controls.DarkScrollBar();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
this.darkTitle3 = new DarkUI.Controls.DarkTitle();
|
||||
this.cmbList = new DarkUI.Controls.DarkDropdownList();
|
||||
this.pnlMain.SuspendLayout();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// pnlMain
|
||||
//
|
||||
this.pnlMain.Controls.Add(this.panel3);
|
||||
this.pnlMain.Controls.Add(this.panel1);
|
||||
this.pnlMain.Controls.Add(this.panel2);
|
||||
this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.pnlMain.Location = new System.Drawing.Point(0, 25);
|
||||
this.pnlMain.Name = "pnlMain";
|
||||
this.pnlMain.Padding = new System.Windows.Forms.Padding(10);
|
||||
this.pnlMain.Size = new System.Drawing.Size(280, 425);
|
||||
this.pnlMain.Padding = new System.Windows.Forms.Padding(10, 10, 5, 10);
|
||||
this.pnlMain.Size = new System.Drawing.Size(265, 425);
|
||||
this.pnlMain.TabIndex = 0;
|
||||
//
|
||||
// panel1
|
||||
@ -69,7 +75,7 @@ namespace Example
|
||||
this.panel1.Location = new System.Drawing.Point(10, 103);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.panel1.Size = new System.Drawing.Size(260, 93);
|
||||
this.panel1.Size = new System.Drawing.Size(250, 93);
|
||||
this.panel1.TabIndex = 2;
|
||||
//
|
||||
// darkRadioButton3
|
||||
@ -79,7 +85,7 @@ namespace Example
|
||||
this.darkRadioButton3.Enabled = false;
|
||||
this.darkRadioButton3.Location = new System.Drawing.Point(0, 64);
|
||||
this.darkRadioButton3.Name = "darkRadioButton3";
|
||||
this.darkRadioButton3.Size = new System.Drawing.Size(260, 19);
|
||||
this.darkRadioButton3.Size = new System.Drawing.Size(250, 19);
|
||||
this.darkRadioButton3.TabIndex = 6;
|
||||
this.darkRadioButton3.TabStop = true;
|
||||
this.darkRadioButton3.Text = "Disabled radiobutton";
|
||||
@ -90,7 +96,7 @@ namespace Example
|
||||
this.darkRadioButton2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.darkRadioButton2.Location = new System.Drawing.Point(0, 45);
|
||||
this.darkRadioButton2.Name = "darkRadioButton2";
|
||||
this.darkRadioButton2.Size = new System.Drawing.Size(260, 19);
|
||||
this.darkRadioButton2.Size = new System.Drawing.Size(250, 19);
|
||||
this.darkRadioButton2.TabIndex = 5;
|
||||
this.darkRadioButton2.TabStop = true;
|
||||
this.darkRadioButton2.Text = "Radiobutton";
|
||||
@ -101,7 +107,7 @@ namespace Example
|
||||
this.darkRadioButton1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.darkRadioButton1.Location = new System.Drawing.Point(0, 26);
|
||||
this.darkRadioButton1.Name = "darkRadioButton1";
|
||||
this.darkRadioButton1.Size = new System.Drawing.Size(260, 19);
|
||||
this.darkRadioButton1.Size = new System.Drawing.Size(250, 19);
|
||||
this.darkRadioButton1.TabIndex = 4;
|
||||
this.darkRadioButton1.TabStop = true;
|
||||
this.darkRadioButton1.Text = "Radiobutton";
|
||||
@ -111,7 +117,7 @@ namespace Example
|
||||
this.darkTitle1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.darkTitle1.Location = new System.Drawing.Point(0, 0);
|
||||
this.darkTitle1.Name = "darkTitle1";
|
||||
this.darkTitle1.Size = new System.Drawing.Size(260, 26);
|
||||
this.darkTitle1.Size = new System.Drawing.Size(250, 26);
|
||||
this.darkTitle1.TabIndex = 7;
|
||||
this.darkTitle1.Text = "Radio buttons";
|
||||
//
|
||||
@ -126,7 +132,7 @@ namespace Example
|
||||
this.panel2.Location = new System.Drawing.Point(10, 10);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.panel2.Size = new System.Drawing.Size(260, 93);
|
||||
this.panel2.Size = new System.Drawing.Size(250, 93);
|
||||
this.panel2.TabIndex = 1;
|
||||
//
|
||||
// darkCheckBox3
|
||||
@ -138,7 +144,7 @@ namespace Example
|
||||
this.darkCheckBox3.Enabled = false;
|
||||
this.darkCheckBox3.Location = new System.Drawing.Point(0, 64);
|
||||
this.darkCheckBox3.Name = "darkCheckBox3";
|
||||
this.darkCheckBox3.Size = new System.Drawing.Size(260, 19);
|
||||
this.darkCheckBox3.Size = new System.Drawing.Size(250, 19);
|
||||
this.darkCheckBox3.TabIndex = 6;
|
||||
this.darkCheckBox3.Text = "Disabled checked checkbox";
|
||||
//
|
||||
@ -149,7 +155,7 @@ namespace Example
|
||||
this.darkCheckBox2.Enabled = false;
|
||||
this.darkCheckBox2.Location = new System.Drawing.Point(0, 45);
|
||||
this.darkCheckBox2.Name = "darkCheckBox2";
|
||||
this.darkCheckBox2.Size = new System.Drawing.Size(260, 19);
|
||||
this.darkCheckBox2.Size = new System.Drawing.Size(250, 19);
|
||||
this.darkCheckBox2.TabIndex = 5;
|
||||
this.darkCheckBox2.Text = "Disabled checkbox";
|
||||
//
|
||||
@ -159,7 +165,7 @@ namespace Example
|
||||
this.darkCheckBox1.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.darkCheckBox1.Location = new System.Drawing.Point(0, 26);
|
||||
this.darkCheckBox1.Name = "darkCheckBox1";
|
||||
this.darkCheckBox1.Size = new System.Drawing.Size(260, 19);
|
||||
this.darkCheckBox1.Size = new System.Drawing.Size(250, 19);
|
||||
this.darkCheckBox1.TabIndex = 4;
|
||||
this.darkCheckBox1.Text = "Checkbox";
|
||||
//
|
||||
@ -168,15 +174,58 @@ namespace Example
|
||||
this.darkTitle2.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.darkTitle2.Location = new System.Drawing.Point(0, 0);
|
||||
this.darkTitle2.Name = "darkTitle2";
|
||||
this.darkTitle2.Size = new System.Drawing.Size(260, 26);
|
||||
this.darkTitle2.Size = new System.Drawing.Size(250, 26);
|
||||
this.darkTitle2.TabIndex = 8;
|
||||
this.darkTitle2.Text = "Check boxes";
|
||||
//
|
||||
// darkScrollBar1
|
||||
//
|
||||
this.darkScrollBar1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.darkScrollBar1.Enabled = false;
|
||||
this.darkScrollBar1.Location = new System.Drawing.Point(265, 25);
|
||||
this.darkScrollBar1.Maximum = 5;
|
||||
this.darkScrollBar1.Minimum = 1;
|
||||
this.darkScrollBar1.Name = "darkScrollBar1";
|
||||
this.darkScrollBar1.Size = new System.Drawing.Size(15, 425);
|
||||
this.darkScrollBar1.TabIndex = 1;
|
||||
this.darkScrollBar1.Text = "darkScrollBar1";
|
||||
//
|
||||
// panel3
|
||||
//
|
||||
this.panel3.AutoSize = true;
|
||||
this.panel3.Controls.Add(this.cmbList);
|
||||
this.panel3.Controls.Add(this.darkTitle3);
|
||||
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.panel3.Location = new System.Drawing.Point(10, 196);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10);
|
||||
this.panel3.Size = new System.Drawing.Size(250, 62);
|
||||
this.panel3.TabIndex = 3;
|
||||
//
|
||||
// darkTitle3
|
||||
//
|
||||
this.darkTitle3.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.darkTitle3.Location = new System.Drawing.Point(0, 0);
|
||||
this.darkTitle3.Name = "darkTitle3";
|
||||
this.darkTitle3.Size = new System.Drawing.Size(250, 26);
|
||||
this.darkTitle3.TabIndex = 7;
|
||||
this.darkTitle3.Text = "Lists";
|
||||
//
|
||||
// cmbList
|
||||
//
|
||||
this.cmbList.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.cmbList.Location = new System.Drawing.Point(0, 26);
|
||||
this.cmbList.Name = "cmbList";
|
||||
this.cmbList.Size = new System.Drawing.Size(250, 26);
|
||||
this.cmbList.TabIndex = 8;
|
||||
this.cmbList.Text = "darkDropdownList1";
|
||||
//
|
||||
// DockProperties
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.pnlMain);
|
||||
this.Controls.Add(this.darkScrollBar1);
|
||||
this.DefaultDockArea = DarkUI.Docking.DarkDockArea.Right;
|
||||
this.DockText = "Properties";
|
||||
this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
@ -190,6 +239,7 @@ namespace Example
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
this.panel2.PerformLayout();
|
||||
this.panel3.ResumeLayout(false);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -207,5 +257,9 @@ namespace Example
|
||||
private DarkUI.Controls.DarkCheckBox darkCheckBox2;
|
||||
private DarkUI.Controls.DarkCheckBox darkCheckBox1;
|
||||
private DarkUI.Controls.DarkTitle darkTitle2;
|
||||
private DarkUI.Controls.DarkScrollBar darkScrollBar1;
|
||||
private System.Windows.Forms.Panel panel3;
|
||||
private DarkUI.Controls.DarkTitle darkTitle3;
|
||||
private DarkUI.Controls.DarkDropdownList cmbList;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,5 @@
|
||||
using DarkUI.Docking;
|
||||
using DarkUI.Controls;
|
||||
using DarkUI.Docking;
|
||||
|
||||
namespace Example
|
||||
{
|
||||
@ -9,6 +10,16 @@ namespace Example
|
||||
public DockProperties()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// Build dummy dropdown data
|
||||
cmbList.Items.Add(new DarkDropdownItem("Item1"));
|
||||
cmbList.Items.Add(new DarkDropdownItem("Item2"));
|
||||
cmbList.Items.Add(new DarkDropdownItem("Item3"));
|
||||
cmbList.Items.Add(new DarkDropdownItem("Item4"));
|
||||
cmbList.Items.Add(new DarkDropdownItem("Item5"));
|
||||
cmbList.Items.Add(new DarkDropdownItem("Item6"));
|
||||
|
||||
cmbList.SelectedItemChanged += delegate { System.Console.WriteLine($"Item changed to {cmbList.SelectedItem.Text}"); };
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Loading…
x
Reference in New Issue
Block a user