diff --git a/AntdUIDemo.csproj b/AntdUIDemo.csproj index 8467657..3b76d59 100644 --- a/AntdUIDemo.csproj +++ b/AntdUIDemo.csproj @@ -13,7 +13,7 @@ Copyright © 2024 czz_y $(Version) $(Version) - 1.8.0 + 1.8.1 czz_y 基于 Winform UI 框架 AntdUI 设计的 Demo https://gitee.com/mubaiyanghua/antd-uidemo @@ -30,7 +30,7 @@ - + diff --git a/MainWindow.Designer.cs b/MainWindow.Designer.cs index 9f03f8e..0f3935c 100644 --- a/MainWindow.Designer.cs +++ b/MainWindow.Designer.cs @@ -29,7 +29,7 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow)); - this.titlebar = new AntdUI.WindowBar(); + this.titlebar = new AntdUI.PageHeader(); this.input_search = new AntdUI.Input(); this.button_color = new AntdUI.Button(); this.buttonSZ = new AntdUI.Button(); @@ -46,11 +46,12 @@ this.titlebar.DividerShow = true; this.titlebar.Dock = System.Windows.Forms.DockStyle.Top; this.titlebar.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.titlebar.IsMax = false; this.titlebar.Location = new System.Drawing.Point(6, 0); this.titlebar.Name = "titlebar"; + this.titlebar.ShowButton = true; + this.titlebar.ShowIcon = true; this.titlebar.Size = new System.Drawing.Size(1018, 40); - this.titlebar.SubText = "Demo"; + this.titlebar.SubText = "Demo 1.8.1"; this.titlebar.TabIndex = 0; this.titlebar.Text = "AntdUI"; // @@ -134,7 +135,7 @@ #endregion - private AntdUI.WindowBar titlebar; + private AntdUI.PageHeader titlebar; private AntdUI.Menu menu; private AntdUI.Button buttonSZ; private AntdUI.Button button_color; diff --git a/MainWindow.cs b/MainWindow.cs index 07b799a..ad792d5 100644 --- a/MainWindow.cs +++ b/MainWindow.cs @@ -352,9 +352,6 @@ namespace AntdUIDemo case "Signal": control = new SignalDemo(); break; - case "WindowBar": - control = new WindowBarDemo(); - break; default: break; } diff --git a/Models/DataUtil.cs b/Models/DataUtil.cs index d65524a..c88948c 100644 --- a/Models/DataUtil.cs +++ b/Models/DataUtil.cs @@ -94,8 +94,7 @@ namespace AntdUIDemo.Models new MenuItems { Text = "ContextMenuStrip 快捷菜单", Tag = "ContextMenuStrip" }, new MenuItems { Text = "Image3D 图片3D", Tag = "Image3D" }, new MenuItems { Text = "PageHeader 页头", Tag= "PageHeader"}, - new MenuItems { Text = "Signal 信号", Tag = "Signal" }, - new MenuItems { Text = "WindowBar 窗口栏", Tag = "WindowBar" } + new MenuItems { Text = "Signal 信号", Tag = "Signal" } } } }; diff --git a/README.md b/README.md index 9fd5f86..45dd4ec 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

AntdUI Demo

-本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.8.0` +本项目基于 `Winform .NET Framework 4.8` 开发,是 [AntdUI](https://gitee.com/antdui/AntdUI) 的 Demo 项目,当前版本 `1.8.1` diff --git a/Views/MenuDemo.Designer.cs b/Views/MenuDemo.Designer.cs index d6170dd..e65cff7 100644 --- a/Views/MenuDemo.Designer.cs +++ b/Views/MenuDemo.Designer.cs @@ -157,15 +157,11 @@ this.menu_inline.Indent = true; menuItem1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); menuItem1.IconSvg = resources.GetString("menuItem1.IconSvg"); - menuItem1.PARENTITEM = null; menuItem2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - menuItem2.PARENTITEM = menuItem1; menuItem2.Text = "SVG可以变色"; menuItem3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem3.PARENTITEM = menuItem1; menuItem3.Text = "如果变不了"; menuItem4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem4.PARENTITEM = menuItem1; menuItem4.Text = "调整svg内容"; menuItem1.Sub.Add(menuItem2); menuItem1.Sub.Add(menuItem3); @@ -173,15 +169,11 @@ menuItem1.Text = "SVG图标菜单"; menuItem5.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); menuItem5.Icon = global::AntdUIDemo.Properties.Resources.关闭; - menuItem5.PARENTITEM = null; menuItem6.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem6.PARENTITEM = menuItem5; menuItem6.Text = "不能变色"; menuItem7.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem7.PARENTITEM = menuItem5; menuItem7.Text = "不适合使用黑白"; menuItem8.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem8.PARENTITEM = menuItem5; menuItem8.Text = "子菜单"; menuItem5.Sub.Add(menuItem6); menuItem5.Sub.Add(menuItem7); @@ -189,15 +181,11 @@ menuItem5.Text = "图片资源菜单"; menuItem9.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); menuItem9.IconSvg = resources.GetString("menuItem9.IconSvg"); - menuItem9.PARENTITEM = null; menuItem10.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - menuItem10.PARENTITEM = menuItem9; menuItem10.Text = "二级菜单"; menuItem11.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem11.PARENTITEM = menuItem9; menuItem11.Text = "二级菜单"; menuItem12.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem12.PARENTITEM = menuItem9; menuItem12.Text = "二级菜单"; menuItem9.Sub.Add(menuItem10); menuItem9.Sub.Add(menuItem11); @@ -231,15 +219,11 @@ this.menu_vertical.Indent = true; menuItem13.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); menuItem13.IconSvg = resources.GetString("menuItem13.IconSvg"); - menuItem13.PARENTITEM = null; menuItem14.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - menuItem14.PARENTITEM = menuItem13; menuItem14.Text = "SVG可以变色"; menuItem15.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem15.PARENTITEM = menuItem13; menuItem15.Text = "如果变不了"; menuItem16.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem16.PARENTITEM = menuItem13; menuItem16.Text = "调整svg内容"; menuItem13.Sub.Add(menuItem14); menuItem13.Sub.Add(menuItem15); @@ -247,15 +231,11 @@ menuItem13.Text = "SVG图标菜单"; menuItem17.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); menuItem17.Icon = global::AntdUIDemo.Properties.Resources.关闭; - menuItem17.PARENTITEM = null; menuItem18.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem18.PARENTITEM = menuItem17; menuItem18.Text = "不能变色"; menuItem19.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem19.PARENTITEM = menuItem17; menuItem19.Text = "不适合使用黑白"; menuItem20.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem20.PARENTITEM = menuItem17; menuItem20.Text = "子菜单"; menuItem17.Sub.Add(menuItem18); menuItem17.Sub.Add(menuItem19); @@ -263,15 +243,11 @@ menuItem17.Text = "图片资源菜单"; menuItem21.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); menuItem21.IconSvg = resources.GetString("menuItem21.IconSvg"); - menuItem21.PARENTITEM = null; menuItem22.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - menuItem22.PARENTITEM = menuItem21; menuItem22.Text = "二级菜单"; menuItem23.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem23.PARENTITEM = menuItem21; menuItem23.Text = "二级菜单"; menuItem24.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - menuItem24.PARENTITEM = menuItem21; menuItem24.Text = "二级菜单"; menuItem21.Sub.Add(menuItem22); menuItem21.Sub.Add(menuItem23); @@ -305,36 +281,24 @@ this.menu_horizontal.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.menu_horizontal.Indent = true; menuItem25.IconSvg = resources.GetString("menuItem25.IconSvg"); - menuItem25.PARENTITEM = null; - menuItem26.PARENTITEM = null; menuItem26.Text = "SVG可以变色"; - menuItem27.PARENTITEM = null; menuItem27.Text = "如果变不了"; - menuItem28.PARENTITEM = null; menuItem28.Text = "调整svg内容"; menuItem25.Sub.Add(menuItem26); menuItem25.Sub.Add(menuItem27); menuItem25.Sub.Add(menuItem28); menuItem25.Text = "SVG图标菜单"; menuItem29.Icon = global::AntdUIDemo.Properties.Resources.关闭; - menuItem29.PARENTITEM = null; - menuItem30.PARENTITEM = null; menuItem30.Text = "不能变色"; - menuItem31.PARENTITEM = null; menuItem31.Text = "不适合使用黑白"; - menuItem32.PARENTITEM = null; menuItem32.Text = "二级菜单"; menuItem29.Sub.Add(menuItem30); menuItem29.Sub.Add(menuItem31); menuItem29.Sub.Add(menuItem32); menuItem29.Text = "图片资源菜单"; menuItem33.IconSvg = resources.GetString("menuItem33.IconSvg"); - menuItem33.PARENTITEM = null; - menuItem34.PARENTITEM = null; menuItem34.Text = "二级菜单"; - menuItem35.PARENTITEM = null; menuItem35.Text = "二级菜单"; - menuItem36.PARENTITEM = null; menuItem36.Text = "二级菜单"; menuItem33.Sub.Add(menuItem34); menuItem33.Sub.Add(menuItem35); @@ -448,6 +412,7 @@ this.colorPicker_backactive.Size = new System.Drawing.Size(121, 34); this.colorPicker_backactive.TabIndex = 5; this.colorPicker_backactive.Text = "colorPicker3"; + this.colorPicker_backactive.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); this.colorPicker_backactive.WaveSize = 0; // // colorPicker_backhover @@ -462,6 +427,7 @@ this.colorPicker_backhover.Size = new System.Drawing.Size(121, 34); this.colorPicker_backhover.TabIndex = 5; this.colorPicker_backhover.Text = "colorPicker2"; + this.colorPicker_backhover.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); this.colorPicker_backhover.WaveSize = 0; // // colorPicker_foreactive @@ -476,6 +442,7 @@ this.colorPicker_foreactive.Size = new System.Drawing.Size(121, 34); this.colorPicker_foreactive.TabIndex = 5; this.colorPicker_foreactive.Text = "colorPicker1"; + this.colorPicker_foreactive.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); this.colorPicker_foreactive.WaveSize = 0; // // colorPicker_forecolor @@ -490,6 +457,7 @@ this.colorPicker_forecolor.Size = new System.Drawing.Size(121, 34); this.colorPicker_forecolor.TabIndex = 5; this.colorPicker_forecolor.Text = "colorPicker1"; + this.colorPicker_forecolor.Value = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(119)))), ((int)(((byte)(255))))); this.colorPicker_forecolor.WaveSize = 0; // // label14 @@ -538,7 +506,6 @@ // switch_unique // this.switch_unique.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.switch_unique.AutoCheck = true; this.switch_unique.Location = new System.Drawing.Point(126, 167); this.switch_unique.Name = "switch_unique"; this.switch_unique.Size = new System.Drawing.Size(50, 26); @@ -559,7 +526,6 @@ // switch_showsubback // this.switch_showsubback.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.switch_showsubback.AutoCheck = true; this.switch_showsubback.Location = new System.Drawing.Point(126, 127); this.switch_showsubback.Name = "switch_showsubback"; this.switch_showsubback.Size = new System.Drawing.Size(50, 26); @@ -580,7 +546,6 @@ // switch_round // this.switch_round.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.switch_round.AutoCheck = true; this.switch_round.Location = new System.Drawing.Point(126, 87); this.switch_round.Name = "switch_round"; this.switch_round.Size = new System.Drawing.Size(50, 26); @@ -601,7 +566,6 @@ // switch_indent // this.switch_indent.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.switch_indent.AutoCheck = true; this.switch_indent.Checked = true; this.switch_indent.Location = new System.Drawing.Point(126, 47); this.switch_indent.Name = "switch_indent"; @@ -623,7 +587,6 @@ // switch_collapsed // this.switch_collapsed.Anchor = System.Windows.Forms.AnchorStyles.Left; - this.switch_collapsed.AutoCheck = true; this.switch_collapsed.Location = new System.Drawing.Point(126, 7); this.switch_collapsed.Name = "switch_collapsed"; this.switch_collapsed.Size = new System.Drawing.Size(50, 26); diff --git a/Views/PageHeaderDemo.Designer.cs b/Views/PageHeaderDemo.Designer.cs index 7588eb6..40d8e75 100644 --- a/Views/PageHeaderDemo.Designer.cs +++ b/Views/PageHeaderDemo.Designer.cs @@ -99,6 +99,7 @@ this.pageHeader3.SubText = "Demo"; this.pageHeader3.TabIndex = 75; this.pageHeader3.Text = "PageHeader"; + this.pageHeader3.UseSubCenter = true; // // label7 // diff --git a/Views/SubView/Demo.Designer.cs b/Views/SubView/Demo.Designer.cs index 3e16330..8d8a037 100644 --- a/Views/SubView/Demo.Designer.cs +++ b/Views/SubView/Demo.Designer.cs @@ -29,7 +29,7 @@ private void InitializeComponent() { this.panel1 = new AntdUI.Panel(); - this.windowBar = new AntdUI.WindowBar(); + this.pageHeader = new AntdUI.PageHeader(); this.button_close = new AntdUI.Button(); this.panel1.SuspendLayout(); this.SuspendLayout(); @@ -37,7 +37,7 @@ // panel1 // this.panel1.Controls.Add(this.button_close); - this.panel1.Controls.Add(this.windowBar); + this.panel1.Controls.Add(this.pageHeader); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; @@ -46,18 +46,18 @@ this.panel1.TabIndex = 0; this.panel1.Text = "panel1"; // - // windowBar + // pageHeader // - this.windowBar.Dock = System.Windows.Forms.DockStyle.Top; - this.windowBar.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); - this.windowBar.Location = new System.Drawing.Point(6, 6); - this.windowBar.MaximizeBox = false; - this.windowBar.MinimizeBox = false; - this.windowBar.Name = "windowBar"; - this.windowBar.ShowIcon = false; - this.windowBar.Size = new System.Drawing.Size(488, 32); - this.windowBar.TabIndex = 1; - this.windowBar.Text = "DrawerDemo"; + this.pageHeader.Dock = System.Windows.Forms.DockStyle.Top; + this.pageHeader.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F); + this.pageHeader.Location = new System.Drawing.Point(6, 6); + this.pageHeader.MaximizeBox = false; + this.pageHeader.MinimizeBox = false; + this.pageHeader.Name = "pageHeader"; + this.pageHeader.ShowIcon = false; + this.pageHeader.Size = new System.Drawing.Size(488, 32); + this.pageHeader.TabIndex = 1; + this.pageHeader.Text = "DrawerDemo"; // // button_close // @@ -83,7 +83,7 @@ #endregion private AntdUI.Panel panel1; - private AntdUI.WindowBar windowBar; + private AntdUI.PageHeader pageHeader; private AntdUI.Button button_close; } } diff --git a/Views/WindowBarDemo.Designer.cs b/Views/WindowBarDemo.Designer.cs deleted file mode 100644 index 2b3e030..0000000 --- a/Views/WindowBarDemo.Designer.cs +++ /dev/null @@ -1,187 +0,0 @@ -namespace AntdUIDemo.Views -{ - partial class WindowBarDemo - { - /// - /// 必需的设计器变量。 - /// - private System.ComponentModel.IContainer components = null; - - /// - /// 清理所有正在使用的资源。 - /// - /// 如果应释放托管资源,为 true;否则为 false。 - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region 组件设计器生成的代码 - - /// - /// 设计器支持所需的方法 - 不要修改 - /// 使用代码编辑器修改此方法的内容。 - /// - private void InitializeComponent() - { - this.stackPanel1 = new AntdUI.StackPanel(); - this.windowBar4 = new AntdUI.WindowBar(); - this.label6 = new AntdUI.Label(); - this.windowBar3 = new AntdUI.WindowBar(); - this.label5 = new AntdUI.Label(); - this.windowBar2 = new AntdUI.WindowBar(); - this.label3 = new AntdUI.Label(); - this.windowBar1 = new AntdUI.WindowBar(); - this.label4 = new AntdUI.Label(); - this.header1 = new AntdUI.PageHeader(); - this.stackPanel1.SuspendLayout(); - this.SuspendLayout(); - // - // stackPanel1 - // - this.stackPanel1.Controls.Add(this.windowBar4); - this.stackPanel1.Controls.Add(this.label6); - this.stackPanel1.Controls.Add(this.windowBar3); - this.stackPanel1.Controls.Add(this.label5); - this.stackPanel1.Controls.Add(this.windowBar2); - this.stackPanel1.Controls.Add(this.label3); - this.stackPanel1.Controls.Add(this.windowBar1); - this.stackPanel1.Controls.Add(this.label4); - this.stackPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.stackPanel1.Location = new System.Drawing.Point(0, 74); - this.stackPanel1.Name = "stackPanel1"; - this.stackPanel1.Size = new System.Drawing.Size(750, 453); - this.stackPanel1.TabIndex = 0; - this.stackPanel1.Text = "stackPanel1"; - this.stackPanel1.Vertical = true; - // - // windowBar4 - // - this.windowBar4.DividerColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(87)))), ((int)(((byte)(34))))); - this.windowBar4.DividerMargin = 120; - this.windowBar4.DividerShow = true; - this.windowBar4.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.windowBar4.Icon = global::AntdUIDemo.Properties.Resources.logo; - this.windowBar4.IsMax = false; - this.windowBar4.Location = new System.Drawing.Point(3, 237); - this.windowBar4.Name = "windowBar4"; - this.windowBar4.Size = new System.Drawing.Size(744, 32); - this.windowBar4.TabIndex = 73; - this.windowBar4.Text = "WindowBar"; - // - // 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, 207); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(744, 24); - this.label6.TabIndex = 72; - this.label6.Text = "线条样式"; - // - // windowBar3 - // - this.windowBar3.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.windowBar3.Icon = global::AntdUIDemo.Properties.Resources.logo; - this.windowBar3.IsMax = false; - this.windowBar3.Location = new System.Drawing.Point(3, 169); - this.windowBar3.MaximizeBox = false; - this.windowBar3.MinimizeBox = false; - this.windowBar3.Name = "windowBar3"; - this.windowBar3.Size = new System.Drawing.Size(744, 32); - this.windowBar3.TabIndex = 71; - this.windowBar3.Text = "WindowBar"; - // - // 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, 139); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(744, 24); - this.label5.TabIndex = 70; - this.label5.Text = "禁用最大/小化"; - // - // windowBar2 - // - this.windowBar2.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.windowBar2.Icon = global::AntdUIDemo.Properties.Resources.logo; - this.windowBar2.IsMax = false; - this.windowBar2.Loading = true; - this.windowBar2.Location = new System.Drawing.Point(3, 101); - this.windowBar2.Name = "windowBar2"; - this.windowBar2.Size = new System.Drawing.Size(744, 32); - this.windowBar2.TabIndex = 69; - this.windowBar2.Text = "WindowBar"; - // - // label3 - // - this.label3.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label3.Location = new System.Drawing.Point(3, 71); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(744, 24); - this.label3.TabIndex = 68; - this.label3.Text = "加载状态"; - // - // windowBar1 - // - this.windowBar1.Font = new System.Drawing.Font("Microsoft YaHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.windowBar1.Icon = global::AntdUIDemo.Properties.Resources.logo; - this.windowBar1.IsMax = false; - this.windowBar1.Location = new System.Drawing.Point(3, 33); - this.windowBar1.Name = "windowBar1"; - this.windowBar1.Size = new System.Drawing.Size(744, 32); - this.windowBar1.SubText = "Demo"; - this.windowBar1.TabIndex = 66; - this.windowBar1.Text = "WindowBar"; - // - // 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, 3); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(744, 24); - this.label4.TabIndex = 65; - this.label4.Text = "基本用法"; - // - // header1 - // - this.header1.Description = "可自定义的窗口栏"; - this.header1.DividerShow = true; - this.header1.Dock = System.Windows.Forms.DockStyle.Top; - this.header1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F); - this.header1.Location = new System.Drawing.Point(0, 0); - this.header1.Name = "header1"; - this.header1.Padding = new System.Windows.Forms.Padding(0, 0, 0, 10); - this.header1.Size = new System.Drawing.Size(750, 74); - this.header1.TabIndex = 27; - this.header1.Text = "WindowBar 窗口栏"; - this.header1.UseTitleFont = true; - // - // WindowBarDemo - // - this.Controls.Add(this.stackPanel1); - this.Controls.Add(this.header1); - this.Name = "WindowBarDemo"; - this.Size = new System.Drawing.Size(750, 527); - this.stackPanel1.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private AntdUI.StackPanel stackPanel1; - private AntdUI.Label label4; - private AntdUI.WindowBar windowBar1; - private AntdUI.Label label6; - private AntdUI.WindowBar windowBar3; - private AntdUI.Label label5; - private AntdUI.WindowBar windowBar2; - private AntdUI.Label label3; - private AntdUI.WindowBar windowBar4; - private AntdUI.PageHeader header1; - } -} diff --git a/Views/WindowBarDemo.cs b/Views/WindowBarDemo.cs deleted file mode 100644 index 11eed25..0000000 --- a/Views/WindowBarDemo.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System.Windows.Forms; - -namespace AntdUIDemo.Views -{ - public partial class WindowBarDemo : UserControl - { - public WindowBarDemo() - { - InitializeComponent(); - } - } -} diff --git a/Views/WindowBarDemo.resx b/Views/WindowBarDemo.resx deleted file mode 100644 index 1af7de1..0000000 --- a/Views/WindowBarDemo.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/assets/screenshots/PageHeader.png b/assets/screenshots/PageHeader.png index c243f7d..4d98108 100644 Binary files a/assets/screenshots/PageHeader.png and b/assets/screenshots/PageHeader.png differ