diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Example.png b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Example.png new file mode 100644 index 00000000..b3658b15 Binary files /dev/null and b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Example.png differ diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.Designer.cs b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.Designer.cs index 59fb7739..fb86c0a4 100644 --- a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.Designer.cs +++ b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.Designer.cs @@ -30,8 +30,8 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.kryptonPanel1 = new Krypton.Toolkit.KryptonPanel(); - this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel(); this.kryptonThemeComboBox1 = new Krypton.Toolkit.KryptonThemeComboBox(); + this.kryptonLabel1 = new Krypton.Toolkit.KryptonLabel(); ((System.ComponentModel.ISupportInitialize)(this.kryptonPanel1)).BeginInit(); this.kryptonPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.kryptonThemeComboBox1)).BeginInit(); @@ -43,41 +43,44 @@ private void InitializeComponent() this.kryptonPanel1.Controls.Add(this.kryptonLabel1); this.kryptonPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.kryptonPanel1.Location = new System.Drawing.Point(0, 0); + this.kryptonPanel1.Margin = new System.Windows.Forms.Padding(4); this.kryptonPanel1.Name = "kryptonPanel1"; - this.kryptonPanel1.Size = new System.Drawing.Size(441, 124); + this.kryptonPanel1.Size = new System.Drawing.Size(588, 153); this.kryptonPanel1.TabIndex = 0; // - // kryptonLabel1 - // - this.kryptonLabel1.LabelStyle = Krypton.Toolkit.LabelStyle.BoldControl; - this.kryptonLabel1.Location = new System.Drawing.Point(12, 48); - this.kryptonLabel1.Name = "kryptonLabel1"; - this.kryptonLabel1.Size = new System.Drawing.Size(132, 21); - this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.kryptonLabel1.TabIndex = 0; - this.kryptonLabel1.Values.Text = "Selected Theme:"; - // // kryptonThemeComboBox1 // - this.kryptonThemeComboBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed; - this.kryptonThemeComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.kryptonThemeComboBox1.CornerRoundingRadius = -1F; this.kryptonThemeComboBox1.DropDownWidth = 278; this.kryptonThemeComboBox1.IntegralHeight = false; - this.kryptonThemeComboBox1.Location = new System.Drawing.Point(151, 47); + this.kryptonThemeComboBox1.Location = new System.Drawing.Point(201, 58); + this.kryptonThemeComboBox1.Margin = new System.Windows.Forms.Padding(4); this.kryptonThemeComboBox1.Name = "kryptonThemeComboBox1"; - this.kryptonThemeComboBox1.Size = new System.Drawing.Size(278, 22); + this.kryptonThemeComboBox1.Size = new System.Drawing.Size(371, 27); this.kryptonThemeComboBox1.StateCommon.ComboBox.Content.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.kryptonThemeComboBox1.StateCommon.ComboBox.Content.TextH = Krypton.Toolkit.PaletteRelativeAlign.Near; this.kryptonThemeComboBox1.TabIndex = 1; // + // kryptonLabel1 + // + this.kryptonLabel1.LabelStyle = Krypton.Toolkit.LabelStyle.BoldControl; + this.kryptonLabel1.Location = new System.Drawing.Point(16, 59); + this.kryptonLabel1.Margin = new System.Windows.Forms.Padding(4); + this.kryptonLabel1.Name = "kryptonLabel1"; + this.kryptonLabel1.Size = new System.Drawing.Size(164, 26); + this.kryptonLabel1.StateCommon.ShortText.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.kryptonLabel1.TabIndex = 0; + this.kryptonLabel1.Values.Text = "Selected Theme:"; + // // Form1 // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(441, 124); + this.ClientSize = new System.Drawing.Size(588, 153); this.Controls.Add(this.kryptonPanel1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(4); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "Form1"; diff --git a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.resx b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.resx index aa17622a..6e6c06e8 100644 --- a/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.resx +++ b/Source/Krypton Toolkit Examples/Krypton Theme Selector/Form1.resx @@ -1,64 +1,4 @@ - - - + diff --git a/Source/Krypton Toolkit Examples/README.md b/Source/Krypton Toolkit Examples/README.md index c202397e..05b44506 100644 --- a/Source/Krypton Toolkit Examples/README.md +++ b/Source/Krypton Toolkit Examples/README.md @@ -10,6 +10,7 @@ * [Expanding HeaderGroups (Stack)](#expanding-headergroups-stack) * [Input Form](#input-form) * [Krypton Scrollbars](#krypton-scrollbars) + * [Krypton Theme Selector](#krypton-theme_selector) * [KryptonBorderEdge Examples](#kryptonborderedge-examples) * [[KryptonBreadCrumb Examples](#kryptonbreadcrumb-examples) * [KryptonButton Examples](#kryptonbutton-examples) @@ -96,6 +97,11 @@ There are 2 set of solutions in these projects: ![Input Form](Input%20Form/example.png) ## Krypton Scrollbars ![Krypton Scrollbars](Krypton%20Scrollbars/KryptonScrollBars.gif) + +## Krypton Theme Selector +- Automatically filled ComboBox with events to change the theme when selection changes: +![Krypton Theme Selector](Krypton%20Theme%20Selector/Example.png) + ## KryptonBorderEdge Examples ![KryptonBorderEdge Examples](KryptonBorderEdge%20Examples/example.png) ## [KryptonBreadCrumb Examples