🦄 Beautiful AntdUI

This commit is contained in:
Tom
2026-01-23 11:46:54 +08:00
parent 42897ed820
commit d740f2462d
93 changed files with 752 additions and 659 deletions

View File

@@ -0,0 +1,53 @@
# AntdUI Emoji 资源库
## 📦 简介
AntdUI Emoji 资源库是基于 Microsoft Fluent UI Emoji 设计的一套现代化 Emoji 图标集,为 AntdUI WinForm 应用提供丰富的表情符号支持,打破传统桌面应用的黑白界限,增加界面趣味性和表现力。
## 🔗 官方仓库
Emoji 资源来源于 Microsoft 官方 Fluent UI Emoji 仓库:
https://github.com/microsoft/fluentui-emoji
## 🚀 使用方法
在应用程序初始化之前,即可通过以下代码将 Fluent Flat Emoji 资源设置到 AntdUI 中:
```csharp
AntdUI.SvgDb.Emoji = AntdUI.FluentFlat.Emoji;
```
## 📋 注意事项
1. 确保在应用程序启动初期就设置 Emoji 资源,建议在 `Main` 方法或应用程序初始化阶段执行
2. 设置后,所有 AntdUI 控件都会自动使用新的 Emoji 资源
3. 可以根据需要随时切换不同的 Emoji 资源库
4. Emoji 资源较大,会增加应用程序的内存占用,建议根据实际需求选择是否使用
---
# AntdUI Emoji Resource Library
## 📦 Introduction
AntdUI Emoji Resource Library is a modern Emoji icon set based on Microsoft Fluent UI Emoji design, providing rich emoji support for AntdUI WinForm applications. It breaks the black and white boundaries of traditional desktop applications, adding fun and expressiveness to the interface.
## 🔗 Official Repository
Emoji resources are sourced from Microsoft's official Fluent UI Emoji repository:
https://github.com/microsoft/fluentui-emoji
## 🚀 Usage
Before application initialization, you can set the Fluent Flat Emoji resources to AntdUI through the following code:
```csharp
AntdUI.SvgDb.Emoji = AntdUI.FluentFlat.Emoji;
```
## 📋 Notes
1. Make sure to set the Emoji resources at the beginning of the application startup, it is recommended to execute in the `Main` method or application initialization phase
2. After setting, all AntdUI controls will automatically use the new Emoji resources
3. You can switch between different Emoji resource libraries at any time as needed
4. Emoji resources are large and will increase the memory usage of the application, it is recommended to choose whether to use it according to actual needs

View File

@@ -1,5 +1,24 @@
[Home](Home.md)・[UpdateLog](UpdateLog.md)・[Config](Config.md)・[Theme](Theme.md)
### `2.2.14` 2026-01-23
- ColorPicker static method
- ColorPicker Presets preset colors
- Config EmojiEnabled
- ControlPopup Pause Close
- Tabs tags vertical mode Rotate
- Chat alignment color card
- Color card automatically adapts to dark colors
- Enrich TooltipConfig settings
- ✍️ Table binding empty collection insertion data not displayed
- ✍️ Correct ColorMode to determine brightness
- ✍️ Tabs only have abnormal layout of tags under the icon
- ✍️ Calendar large font misalignment
- ✍️ Align font calculation cache
- ✍️ Net48 DPI perception
- ✍️ Text spaces are missing
- ✍️ Calendar open in multiple languages
### `2.2.13` 2026-01-19
- Config ShadowSize

View File

@@ -1,5 +1,24 @@
[首页](Home.md)・[更新日志](UpdateLog.md)・[配置](Config.md)・[主题](Theme.md)
### `2.2.14` 2026-01-23
- ColorPicker 静态方法
- ColorPicker Presets 预设颜色
- Config EmojiEnabled
- ControlPopup 暂停关闭
- Tabs 标签竖直模式 Rotate
- Chat 对齐色卡
- 色卡自动适配暗色
- 丰富 TooltipConfig 设置
- ✍️ Table 绑定空集合插入数据不显示
- ✍️ 修正 ColorMode 判断亮度
- ✍️ Tabs 仅图标下标签布局异常
- ✍️ Calendar 大字体错位
- ✍️ 对齐字体计算缓存
- ✍️ net48 DPI 感知
- ✍️ 文本空格丢失
- ✍️ 日历开放多语言
### `2.2.13` 2026-01-19
- Config ShadowSize

View File

@@ -29,12 +29,17 @@ namespace ChatUI
AntdUI.Chat.MsgItem msgItem3 = new AntdUI.Chat.MsgItem();
AntdUI.Chat.MsgItem msgItem4 = new AntdUI.Chat.MsgItem();
win = new AntdUI.PageHeader();
colorTheme = new AntdUI.ColorPicker();
btn_mode = new AntdUI.Button();
msgList = new AntdUI.Chat.MsgList();
chatList = new AntdUI.Chat.ChatList();
win.SuspendLayout();
SuspendLayout();
//
// win
//
win.Controls.Add(colorTheme);
win.Controls.Add(btn_mode);
win.Dock = DockStyle.Top;
win.Location = new Point(0, 0);
win.Name = "win";
@@ -45,25 +50,51 @@ namespace ChatUI
win.TabIndex = 0;
win.Text = "AntdUI GPT";
//
// colorTheme
//
colorTheme.Dock = DockStyle.Right;
colorTheme.Location = new Point(529, 0);
colorTheme.Name = "colorTheme";
colorTheme.Padding = new Padding(4);
colorTheme.Size = new Size(36, 36);
colorTheme.TabIndex = 10;
colorTheme.ValueChanged += colorTheme_ValueChanged;
//
// btn_mode
//
btn_mode.Dock = DockStyle.Right;
btn_mode.Ghost = true;
btn_mode.IconSvg = "SunOutlined";
btn_mode.Location = new Point(565, 0);
btn_mode.Name = "btn_mode";
btn_mode.Radius = 0;
btn_mode.Size = new Size(36, 36);
btn_mode.TabIndex = 9;
btn_mode.ToggleIconSvg = "MoonOutlined";
btn_mode.WaveSize = 0;
btn_mode.Click += btn_mode_Click;
//
// msgList
//
msgList.BackColor = Color.White;
msgList.Dock = DockStyle.Left;
msgItem1.Icon = Properties.Resources.aduskin;
msgItem1.Name = "WPF / Flutter UI";
msgItem1.Text = "AduSkin我初三就上班啦";
msgItem1.Time = "10:24";
msgItem2.Badge = "99+";
msgItem2.Count = 999;
msgItem2.Icon = Properties.Resources.av2;
msgItem2.Name = "宝宝";
msgItem2.Text = "今天给你买一束花";
msgItem2.Time = "13:14";
msgItem3.Badge = "5";
msgItem3.Count = 5;
msgItem3.Icon = Properties.Resources.antd;
msgItem3.Name = "AntdUI";
msgItem3.Select = true;
msgItem3.Text = "TomAntDesign设计语言的Winform界面库";
msgItem3.Time = "前天";
msgItem4.Badge = "";
msgItem4.Count = 1;
msgItem4.Icon = Properties.Resources.av1;
msgItem4.Name = "Tom";
@@ -98,6 +129,7 @@ namespace ChatUI
Name = "Main";
StartPosition = FormStartPosition.CenterScreen;
Text = "ChatUI";
win.ResumeLayout(false);
ResumeLayout(false);
}
@@ -106,5 +138,7 @@ namespace ChatUI
private AntdUI.PageHeader win;
private AntdUI.Chat.MsgList msgList;
private AntdUI.Chat.ChatList chatList;
private AntdUI.ColorPicker colorTheme;
private AntdUI.Button btn_mode;
}
}

View File

@@ -4,6 +4,7 @@
// GitHub: https://github.com/AntdUI/AntdUI
// GitCode: https://gitcode.com/AntdUI/AntdUI
using AntdUI;
using System.Text;
namespace ChatUI
@@ -13,7 +14,28 @@ namespace ChatUI
public Main()
{
InitializeComponent();
msgList.ItemClick += MsgList_ItemClick;
Theme().Call(dark => msgList.BackColor = AntdUI.Style.Db.BgBase);
msgList.ItemClick += msgList_ItemClick;
colorTheme.Presets = new Color[] {
"#f44336".ToColor(),
"#e91e63".ToColor(),
"#9c27b0".ToColor(),
"#673ab7".ToColor(),
"#3f51b5".ToColor(),
"#2196f3".ToColor(),
"#03a9f4".ToColor(),
"#00bcd4".ToColor(),
"#009688".ToColor(),
"#4caf50".ToColor(),
"#cddc39".ToColor(),
"#ffeb3b".ToColor(),
"#ffc107".ToColor(),
"#ff9800".ToColor(),
"#ff5722".ToColor(),
"#795548".ToColor(),
"#9e9e9e".ToColor(),
"#607d8b".ToColor()
};
}
protected override void OnLoad(EventArgs e)
@@ -28,9 +50,9 @@ namespace ChatUI
chatList.AddToBottom(new AntdUI.Chat.TextChatItem("完美主义 🥣💲🐖👚", Properties.Resources.av1, "Tom") { Me = true });
Thread.Sleep(700);
if (File.Exists("../../../../doc/pre/banner.png") && File.Exists("../../../../src/logo.png"))
if (File.Exists(BasePath + "doc/pre/banner.png") && File.Exists(BasePath + "src/logo.png"))
{
chatList.AddToBottom(new AntdUI.Chat.TextChatItem("🦄 Winform interface library based on the Ant Design\n" + "data:image/png;base64," + Convert.ToBase64String(File.ReadAllBytes("../../../../doc/pre/banner.png")), (Bitmap)Image.FromFile("../../../../src/logo.png"), "AntdUI"));
chatList.AddToBottom(new AntdUI.Chat.TextChatItem("🦄 Winform interface library based on the Ant Design\n" + "data:image/png;base64," + Convert.ToBase64String(File.ReadAllBytes(BasePath + "doc/pre/banner.png")), (Bitmap)Image.FromFile(BasePath + "src/logo.png"), "AntdUI"));
Thread.Sleep(700);
}
@@ -124,7 +146,7 @@ namespace ChatUI
});
}
private void MsgList_ItemClick(object sender, AntdUI.MsgItemClickEventArgs e)
private void msgList_ItemClick(object sender, AntdUI.MsgItemClickEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
@@ -139,5 +161,18 @@ namespace ChatUI
});
}
}
static string BasePath = "../../../../";
private void colorTheme_ValueChanged(object sender, AntdUI.ColorEventArgs e)
{
AntdUI.Style.SetPrimary(e.Value);
Refresh();
}
private void btn_mode_Click(object sender, EventArgs e)
{
AntdUI.Config.IsDark = !AntdUI.Config.IsDark;
}
}
}

View File

@@ -15,7 +15,8 @@ namespace ChatUI
static void Main()
{
AntdUI.Config.TextRenderingHighQuality = true;
Application.SetHighDpiMode(HighDpiMode.SystemAware);
AntdUI.Config.Theme().Header("f3f3f3", "111111").Light("f7f7f7").Dark("202020").FormBorderColor();
Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
AntdUI.SvgDb.Emoji = AntdUI.FluentFlat.Emoji;
Application.Run(new Main());
}

View File

@@ -1,4 +1,4 @@
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
@@ -19,7 +19,7 @@ namespace ChatUI.Properties {
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "18.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
@@ -122,7 +122,7 @@
<value>..\Resources\aduskin.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="antd" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\antd.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<value>..\Resources\antd.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="av1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\av1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -102,7 +102,7 @@ namespace Demo.Controls
button1.LocalizationText = "Battery.Add";
button1.Location = new Point(3, 7);
button1.Name = "button1";
button1.Size = new Size(83, 38);
button1.Size = new Size(77, 38);
button1.TabIndex = 0;
button1.Text = "加电量";
button1.Type = AntdUI.TTypeMini.Primary;
@@ -112,9 +112,9 @@ namespace Demo.Controls
//
button2.AutoSizeMode = AntdUI.TAutoSize.Width;
button2.LocalizationText = "Battery.Subtract";
button2.Location = new Point(92, 7);
button2.Location = new Point(86, 7);
button2.Name = "button2";
button2.Size = new Size(83, 38);
button2.Size = new Size(77, 38);
button2.TabIndex = 1;
button2.Text = "减电量";
button2.Type = AntdUI.TTypeMini.Success;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -86,51 +86,48 @@ namespace Demo.Controls
// collapse1
//
collapse1.Dock = DockStyle.Top;
collapse1.FontExpand = new Font("Microsoft YaHei UI", 12F, FontStyle.Bold);
collapse1.Items.Add(collapseItem1);
collapse1.Items.Add(collapseItem2);
collapse1.Items.Add(collapseItem3);
collapse1.Location = new Point(0, 28);
collapse1.Name = "collapse1";
collapse1.FontExpand = new Font("Microsoft YaHei UI", 12F, FontStyle.Bold);
collapse1.Size = new Size(723, 448);
collapse1.TabIndex = 0;
collapse1.ButtonClick += new AntdUI.CollapseButtonClickEventHandler(collapse1_ButtonClickChanged);
collapse1.ButtonClick += collapse1_ButtonClickChanged;
//
// collapseItem1
//
collapseGroupButton7.IconSvg = "";
collapseGroupButton7.Name = "SWITCH";
collapseGroupButton7.SwitchMode = true;
collapseGroupButton7.Checked = true;
collapseGroupButton7.CheckedText = "启用";
collapseGroupButton7.UnCheckedText = "停用";
collapseGroupButton7.Width = 80;
collapseGroupButton7.CheckedChanged += new AntdUI.CollapseSwitchCheckedChangedEventHandler(switchButton_CheckedChanged);
collapseGroupButton1.IconSvg = "";
collapseGroupButton1.Name = "ADD";
collapseGroupButton1.EditType = AntdUI.EButtonEditTypes.Button;
collapseGroupButton1.Text = "+";
collapseGroupButton1.Tooltip = "增加";
collapseGroupButton2.IconSvg = "";
collapseGroupButton2.Name = "DEL";
collapseGroupButton2.Text = "-";
collapseGroupButton1.Checked = true;
collapseGroupButton1.CheckedText = "启用";
collapseGroupButton1.EditType = AntdUI.EButtonEditTypes.Switch;
collapseGroupButton1.Name = "SWITCH";
collapseGroupButton1.SwitchMode = true;
collapseGroupButton1.UnCheckedText = "停用";
collapseGroupButton1.Width = 80;
collapseGroupButton2.EditType = AntdUI.EButtonEditTypes.Button;
collapseGroupButton2.Tooltip = "减少";
collapseGroupButton9.IconSvg = "EditOutlined";
collapseGroupButton9.Name = "EDIT";
collapseGroupButton9.Width = 200;
collapseGroupButton9.EditType = AntdUI.EButtonEditTypes.Input;
collapseItem1.Buttons.Add(collapseGroupButton7);
collapseGroupButton2.Name = "ADD";
collapseGroupButton2.Text = "+";
collapseGroupButton2.Tooltip = "增加";
collapseGroupButton3.EditType = AntdUI.EButtonEditTypes.Button;
collapseGroupButton3.Name = "DEL";
collapseGroupButton3.Text = "-";
collapseGroupButton3.Tooltip = "减少";
collapseGroupButton4.EditType = AntdUI.EButtonEditTypes.Input;
collapseGroupButton4.IconSvg = "EditOutlined";
collapseGroupButton4.Name = "EDIT";
collapseGroupButton4.Width = 200;
collapseItem1.Buttons.Add(collapseGroupButton1);
collapseItem1.Buttons.Add(collapseGroupButton2);
collapseItem1.Buttons.Add(collapseGroupButton9);
collapseItem1.Buttons.Add(collapseGroupButton3);
collapseItem1.Buttons.Add(collapseGroupButton4);
collapseItem1.Controls.Add(label1);
collapseItem1.IconSvg = "PlusCircleOutlined";
collapseItem1.Location = new Point(-702, -48);
collapseItem1.Name = "collapseItem1";
collapseItem1.Size = new Size(702, 48);
collapseItem1.TabIndex = 0;
collapseItem1.Text = "This is panel header 1";
collapseItem1.IconSvg = "PlusCircleOutlined";
//
// label1
//
@@ -144,36 +141,35 @@ namespace Demo.Controls
//
// collapseItem2
//
collapseGroupButton3.IconSvg = "StepForwardOutlined";
collapseGroupButton3.Name = "Last";
collapseGroupButton3.Text = "最前";
collapseGroupButton4.IconSvg = "CaretRightOutlined";
collapseGroupButton4.Name = "Next";
collapseGroupButton4.Text = "前进";
collapseGroupButton5.IconSvg = "CaretLeftOutlined";
collapseGroupButton5.Name = "Back";
collapseGroupButton5.Text = "后退";
collapseGroupButton6.IconSvg = "StepBackwardOutlined";
collapseGroupButton6.Name = "First";
collapseGroupButton6.Select = true;
collapseGroupButton6.Text = "最后";
collapseGroupButton10.IconSvg = "SearchOutlined";
collapseGroupButton10.Name = "EDIT1";
collapseGroupButton10.Width = 200;
collapseGroupButton10.EditType = AntdUI.EButtonEditTypes.Input;
collapseGroupButton10.TextChanged += new AntdUI.CollapseEditChangedEventHandler(edit1_TextChanged);
collapseItem2.Buttons.Add(collapseGroupButton3);
collapseItem2.Buttons.Add(collapseGroupButton4);
collapseGroupButton5.IconSvg = "StepForwardOutlined";
collapseGroupButton5.Name = "Last";
collapseGroupButton5.Text = "最前";
collapseGroupButton6.IconSvg = "CaretRightOutlined";
collapseGroupButton6.Name = "Next";
collapseGroupButton6.Text = "前进";
collapseGroupButton7.IconSvg = "CaretLeftOutlined";
collapseGroupButton7.Name = "Back";
collapseGroupButton7.Text = "后退";
collapseGroupButton8.IconSvg = "StepBackwardOutlined";
collapseGroupButton8.Name = "First";
collapseGroupButton8.Select = true;
collapseGroupButton8.Text = "最后";
collapseGroupButton9.EditType = AntdUI.EButtonEditTypes.Input;
collapseGroupButton9.IconSvg = "SearchOutlined";
collapseGroupButton9.Name = "EDIT1";
collapseGroupButton9.Width = 200;
collapseItem2.Buttons.Add(collapseGroupButton5);
collapseItem2.Buttons.Add(collapseGroupButton6);
collapseItem2.Buttons.Add(collapseGroupButton10);
collapseItem2.Buttons.Add(collapseGroupButton7);
collapseItem2.Buttons.Add(collapseGroupButton8);
collapseItem2.Buttons.Add(collapseGroupButton9);
collapseItem2.Controls.Add(label2);
collapseItem2.IconSvg = "AreaChartOutlined";
collapseItem2.Location = new Point(-702, -48);
collapseItem2.Name = "collapseItem2";
collapseItem2.Size = new Size(702, 48);
collapseItem2.TabIndex = 1;
collapseItem2.Text = "This is panel header 2";
collapseItem2.IconSvg = "AreaChartOutlined";
//
// label2
//
@@ -187,29 +183,27 @@ namespace Demo.Controls
//
// collapseItem3
//
collapseGroupButton8.IconSvg = "";
collapseGroupButton8.Name = "SWITCH";
collapseGroupButton8.SwitchMode = true;
collapseGroupButton8.Checked = true;
collapseGroupButton8.CheckedText = "ON";
collapseGroupButton8.UnCheckedText = "OFF";
collapseGroupButton8.Width = 80;
collapseGroupButton8.Tooltip = "ON/OFF";
collapseGroupButton8.CheckedChanged += new AntdUI.CollapseSwitchCheckedChangedEventHandler(switchButton_CheckedChanged);
collapseGroupButton10.Checked = true;
collapseGroupButton10.CheckedText = "ON";
collapseGroupButton10.EditType = AntdUI.EButtonEditTypes.Switch;
collapseGroupButton10.Name = "SWITCH";
collapseGroupButton10.SwitchMode = true;
collapseGroupButton10.Tooltip = "ON/OFF";
collapseGroupButton10.UnCheckedText = "OFF";
collapseGroupButton10.Width = 80;
collapseGroupButton11.EditType = AntdUI.EButtonEditTypes.Custom;
collapseGroupButton11.IconSvg = "EditOutlined";
collapseGroupButton11.Name = "CustomEdit";
collapseGroupButton11.Width = 200;
collapseGroupButton11.EditType = AntdUI.EButtonEditTypes.Custom;
collapseGroupButton11.CustomInputEdit += new AntdUI.CollapseCustomInputEditEventHandler(CollapseGroupButton11_CustomInputEdit);
collapseItem3.Buttons.Add(collapseGroupButton8);
collapseItem3.Buttons.Add(collapseGroupButton10);
collapseItem3.Buttons.Add(collapseGroupButton11);
collapseItem3.Controls.Add(label3);
collapseItem3.IconSvg = "DotChartOutlined";
collapseItem3.Location = new Point(-702, -48);
collapseItem3.Name = "collapseItem3";
collapseItem3.Size = new Size(702, 48);
collapseItem3.TabIndex = 2;
collapseItem3.Text = "This is panel header 3";
collapseItem3.IconSvg = "DotChartOutlined";
//
// label3
//
@@ -252,7 +246,7 @@ namespace Demo.Controls
//
collapseItem4.Controls.Add(label4);
collapseItem4.Expand = true;
collapseItem4.Location = new Point(19, 66);
collapseItem4.Location = new Point(19, 64);
collapseItem4.Name = "collapseItem4";
collapseItem4.Size = new Size(685, 48);
collapseItem4.TabIndex = 0;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -69,7 +69,6 @@ namespace Demo.Controls
colorPicker3.Name = "colorPicker3";
colorPicker3.Size = new Size(46, 46);
colorPicker3.TabIndex = 26;
colorPicker3.Value = Color.FromArgb(22, 119, 255);
//
// colorPicker1
//
@@ -79,7 +78,6 @@ namespace Demo.Controls
colorPicker1.ShowText = true;
colorPicker1.Size = new Size(125, 46);
colorPicker1.TabIndex = 26;
colorPicker1.Value = Color.FromArgb(22, 119, 255);
//
// colorPicker2
//
@@ -94,7 +92,6 @@ namespace Demo.Controls
colorPicker2.Size = new Size(46, 46);
colorPicker2.TabIndex = 26;
colorPicker2.Text = "C";
colorPicker2.Value = Color.FromArgb(22, 119, 255);
//
// ColorPicker
//

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -53,7 +53,7 @@ namespace Demo.Controls
button1.AutoSizeMode = AntdUI.TAutoSize.Auto;
button1.Location = new Point(14, 93);
button1.Name = "button1";
button1.Size = new Size(71, 47);
button1.Size = new Size(65, 46);
button1.TabIndex = 2;
button1.Text = "Click";
button1.Type = AntdUI.TTypeMini.Primary;
@@ -70,7 +70,7 @@ namespace Demo.Controls
button2.AutoSizeMode = AntdUI.TAutoSize.Auto;
button2.Location = new Point(100, 93);
button2.Name = "button2";
button2.Size = new Size(116, 47);
button2.Size = new Size(110, 46);
button2.TabIndex = 2;
button2.Text = "NotifyIcon";
button2.Type = AntdUI.TTypeMini.Primary;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -94,9 +94,9 @@ namespace Demo.Controls
radio2.AutoSizeMode = AntdUI.TAutoSize.Width;
radio2.Checked = true;
radio2.Dock = DockStyle.Left;
radio2.Location = new Point(258, 0);
radio2.Location = new Point(236, 0);
radio2.Name = "radio2";
radio2.Size = new Size(86, 46);
radio2.Size = new Size(79, 46);
radio2.TabIndex = 1;
radio2.Text = "right";
//
@@ -104,9 +104,9 @@ namespace Demo.Controls
//
radio4.AutoSizeMode = AntdUI.TAutoSize.Width;
radio4.Dock = DockStyle.Left;
radio4.Location = new Point(184, 0);
radio4.Location = new Point(169, 0);
radio4.Name = "radio4";
radio4.Size = new Size(74, 46);
radio4.Size = new Size(67, 46);
radio4.TabIndex = 3;
radio4.Text = "left";
//
@@ -114,9 +114,9 @@ namespace Demo.Controls
//
radio3.AutoSizeMode = AntdUI.TAutoSize.Width;
radio3.Dock = DockStyle.Left;
radio3.Location = new Point(76, 0);
radio3.Location = new Point(69, 0);
radio3.Name = "radio3";
radio3.Size = new Size(108, 46);
radio3.Size = new Size(100, 46);
radio3.TabIndex = 2;
radio3.Text = "bottom";
//
@@ -126,7 +126,7 @@ namespace Demo.Controls
radio1.Dock = DockStyle.Left;
radio1.Location = new Point(0, 0);
radio1.Name = "radio1";
radio1.Size = new Size(76, 46);
radio1.Size = new Size(69, 46);
radio1.TabIndex = 0;
radio1.Text = "top";
//
@@ -135,7 +135,7 @@ namespace Demo.Controls
button1.AutoSizeMode = AntdUI.TAutoSize.Auto;
button1.Location = new Point(18, 10);
button1.Name = "button1";
button1.Size = new Size(77, 47);
button1.Size = new Size(72, 46);
button1.TabIndex = 0;
button1.Text = "Open";
button1.Type = AntdUI.TTypeMini.Primary;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -152,7 +152,7 @@ namespace Demo.Controls
// button10
//
button10.Ghost = true;
button10.Location = new Point(500, 385);
button10.Location = new Point(500, 384);
button10.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
button10.Name = "button10";
button10.Radius = 0;
@@ -163,7 +163,7 @@ namespace Demo.Controls
//
// button9
//
button9.Location = new Point(0, 385);
button9.Location = new Point(0, 384);
button9.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
button9.Name = "button9";
button9.Radius = 0;
@@ -175,7 +175,7 @@ namespace Demo.Controls
//
// button8
//
button8.Location = new Point(666, 266);
button8.Location = new Point(667, 266);
button8.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2);
button8.Name = "button8";
button8.Radius = 0;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -181,6 +181,7 @@ namespace Demo.Controls
ic4.TextAlign = HorizontalAlignment.Center;
ic4.VerifyKeyboard += VerifyKeyboard;
ic4.TextChanged += CodeTextChanged;
ic4.GotFocus += CodeGotFocus;
ic4.KeyPress += CodeKeyPress;
//
// ic3
@@ -194,6 +195,7 @@ namespace Demo.Controls
ic3.TextAlign = HorizontalAlignment.Center;
ic3.VerifyKeyboard += VerifyKeyboard;
ic3.TextChanged += CodeTextChanged;
ic3.GotFocus += CodeGotFocus;
ic3.KeyPress += CodeKeyPress;
//
// ic2
@@ -207,6 +209,7 @@ namespace Demo.Controls
ic2.TextAlign = HorizontalAlignment.Center;
ic2.VerifyKeyboard += VerifyKeyboard;
ic2.TextChanged += CodeTextChanged;
ic2.GotFocus += CodeGotFocus;
ic2.KeyPress += CodeKeyPress;
//
// ic1
@@ -220,6 +223,7 @@ namespace Demo.Controls
ic1.TextAlign = HorizontalAlignment.Center;
ic1.VerifyKeyboard += VerifyKeyboard;
ic1.TextChanged += CodeTextChanged;
ic1.GotFocus += CodeGotFocus;
ic1.KeyPress += CodeKeyPress;
//
// panel5
@@ -237,10 +241,10 @@ namespace Demo.Controls
input10.Dock = DockStyle.Fill;
input10.JoinMode = AntdUI.TJoinMode.Right;
input10.LocalizationPlaceholderText = "Input.{id}";
input10.Location = new Point(59, 0);
input10.Location = new Point(57, 0);
input10.Name = "input10";
input10.PlaceholderText = "输入点什么搜索";
input10.Size = new Size(161, 50);
input10.Size = new Size(163, 50);
input10.TabIndex = 0;
//
// button1
@@ -251,7 +255,7 @@ namespace Demo.Controls
button1.LocalizationText = "Input.Search";
button1.Location = new Point(0, 0);
button1.Name = "button1";
button1.Size = new Size(59, 50);
button1.Size = new Size(57, 50);
button1.TabIndex = 1;
button1.Text = "搜索";
button1.Type = AntdUI.TTypeMini.Primary;
@@ -308,7 +312,7 @@ namespace Demo.Controls
input19.Location = new Point(0, 0);
input19.Name = "input19";
input19.PlaceholderText = "输入点什么搜索";
input19.Size = new Size(161, 50);
input19.Size = new Size(163, 50);
input19.TabIndex = 0;
//
// button3
@@ -317,9 +321,9 @@ namespace Demo.Controls
button3.Dock = DockStyle.Right;
button3.JoinMode = AntdUI.TJoinMode.Right;
button3.LocalizationText = "Input.Search";
button3.Location = new Point(161, 0);
button3.Location = new Point(163, 0);
button3.Name = "button3";
button3.Size = new Size(59, 50);
button3.Size = new Size(57, 50);
button3.TabIndex = 1;
button3.Text = "搜索";
button3.Type = AntdUI.TTypeMini.Primary;
@@ -690,6 +694,6 @@ namespace Demo.Controls
private AntdUI.Input ic3;
private AntdUI.Input ic2;
private AntdUI.Input ic1;
private AntdUI. Label label1;
private AntdUI.Label label1;
}
}

View File

@@ -5,6 +5,7 @@
// GitCode: https://gitcode.com/AntdUI/AntdUI
using System;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Demo.Controls
@@ -31,6 +32,34 @@ namespace Demo.Controls
}
}
#region
private void CodeGotFocus(object sender, EventArgs e)
{
if (sender is AntdUI.Input input)
{
var input_next = FindNullInput(input);
if (input_next == null) return;
BeginInvoke(input_next.Focus);
}
}
AntdUI.Input FindNullInput(AntdUI.Input input)
{
int index = input.TabIndex - 1;
AntdUI.Input tmp = null;
while (true)
{
var find = tableLayoutPanel1.Controls.Find("ic" + index, false);
if (find.Length == 1 && find[0] is AntdUI.Input next)
{
index--;
if (string.IsNullOrWhiteSpace(next.Text)) tmp = next;
}
else return tmp;
}
}
private void CodeTextChanged(object sender, EventArgs e)
{
if (sender is AntdUI.Input input)
@@ -43,9 +72,27 @@ namespace Demo.Controls
input_next.Text = "";
input_next.Focus();
}
}
else
{
else
{
input10.Focus();
tableLayoutPanel1.Enabled = false;
AntdUI.Spin.open(tableLayoutPanel1, async config =>
{
await Task.Delay(1000);
ic1.Clear();
ic2.Clear();
ic3.Clear();
ic4.Clear();
}, () =>
{
BeginInvoke(() =>
{
tableLayoutPanel1.Enabled = true;
ic1.Focus();
});
});
AntdUI.Message.info(form, AntdUI.Localization.Get("Input.Code2", "验证码:") + ic1.Text + " " + ic2.Text + " " + ic3.Text + " " + ic4.Text);
}
}
}
}
@@ -85,9 +132,11 @@ namespace Demo.Controls
private void CodeKeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == 8 && sender is AntdUI.Input input && input.Text.Length == 0)
if (e.KeyChar == 8 && sender is AntdUI.Input input)
{
//Back
input.Clear();
input.ClearUndo();
var find = tableLayoutPanel1.Controls.Find("ic" + (input.TabIndex - 1), false);
if (find.Length == 1 && find[0] is AntdUI.Input input_next)
{
@@ -96,5 +145,7 @@ namespace Demo.Controls
}
}
}
#endregion
}
}

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -36,9 +36,9 @@ namespace Demo.Controls
input6 = new AntdUI.InputNumber();
panel1 = new System.Windows.Forms.Panel();
panel2 = new System.Windows.Forms.Panel();
divider1 = new AntdUI.Divider();
inputNumberWithValueFormatter = new AntdUI.InputNumber();
inputNumberWithoutValueFormatter = new AntdUI.InputNumber();
inputNumberWithValueFormatter = new AntdUI.InputNumber();
divider1 = new AntdUI.Divider();
panel1.SuspendLayout();
panel2.SuspendLayout();
SuspendLayout();
@@ -149,18 +149,18 @@ namespace Demo.Controls
panel2.Size = new Size(555, 214);
panel2.TabIndex = 0;
//
// divider1
// inputNumberWithoutValueFormatter
//
divider1.Dock = DockStyle.Top;
divider1.Font = new Font("Microsoft YaHei UI", 10F);
divider1.LocalizationText = "InputNumber.{id}";
divider1.Location = new Point(0, 0);
divider1.Name = "divider1";
divider1.Orientation = AntdUI.TOrientation.Left;
divider1.Size = new Size(555, 28);
divider1.TabIndex = 1;
divider1.TabStop = false;
divider1.Text = "常规";
inputNumberWithoutValueFormatter.DecimalPlaces = 2;
inputNumberWithoutValueFormatter.Increment = new decimal(new int[] { 1000, 0, 0, 0 });
inputNumberWithoutValueFormatter.Location = new Point(18, 152);
inputNumberWithoutValueFormatter.Name = "inputNumberWithoutValueFormatter";
inputNumberWithoutValueFormatter.Radius = 0;
inputNumberWithoutValueFormatter.Size = new Size(220, 44);
inputNumberWithoutValueFormatter.TabIndex = 3;
inputNumberWithoutValueFormatter.Text = "10,000.00";
inputNumberWithoutValueFormatter.ThousandsSeparator = true;
inputNumberWithoutValueFormatter.Value = new decimal(new int[] { 10000, 0, 0, 0 });
//
// inputNumberWithValueFormatter
//
@@ -175,18 +175,18 @@ namespace Demo.Controls
inputNumberWithValueFormatter.ThousandsSeparator = true;
inputNumberWithValueFormatter.Value = new decimal(new int[] { 10000, 0, 0, 0 });
//
// inputNumberWithoutValueFormatter
// divider1
//
inputNumberWithoutValueFormatter.DecimalPlaces = 2;
inputNumberWithoutValueFormatter.Increment = new decimal(new int[] { 1000, 0, 0, 0 });
inputNumberWithoutValueFormatter.Location = new Point(18, 152);
inputNumberWithoutValueFormatter.Name = "inputNumberWithoutValueFormatter";
inputNumberWithoutValueFormatter.Radius = 0;
inputNumberWithoutValueFormatter.Size = new Size(220, 44);
inputNumberWithoutValueFormatter.TabIndex = 3;
inputNumberWithoutValueFormatter.Text = "10,000.00";
inputNumberWithoutValueFormatter.ThousandsSeparator = true;
inputNumberWithoutValueFormatter.Value = new decimal(new int[] { 10000, 0, 0, 0 });
divider1.Dock = DockStyle.Top;
divider1.Font = new Font("Microsoft YaHei UI", 10F);
divider1.LocalizationText = "InputNumber.{id}";
divider1.Location = new Point(0, 0);
divider1.Name = "divider1";
divider1.Orientation = AntdUI.TOrientation.Left;
divider1.Size = new Size(555, 28);
divider1.TabIndex = 1;
divider1.TabStop = false;
divider1.Text = "常规";
//
// InputNumber
//

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -78,10 +78,10 @@ namespace Demo.Controls
tableLayoutPanel1 = new TableLayoutPanel();
panel2 = new System.Windows.Forms.Panel();
switch4 = new AntdUI.Switch();
switch5 = new AntdUI.Switch();
menu3 = new AntdUI.Menu();
switch3 = new AntdUI.Switch();
panel1 = new System.Windows.Forms.Panel();
switch5 = new AntdUI.Switch();
switch2 = new AntdUI.Switch();
switch1 = new AntdUI.Switch();
divider3 = new AntdUI.Divider();
@@ -167,23 +167,23 @@ namespace Demo.Controls
menu2.Dock = DockStyle.Left;
menuItem8.IconSvg = "MailOutlined";
menuItem8.Select = true;
menuItem9.IconSvg = "MenuOutlined";
menuItem9.Select = true;
menuItem10.IconSvg = "CheckCircleOutlined";
menuItem10.Select = true;
menuItem10.Text = "Option 1";
menuItem10.IconSvg = "CheckCircleOutlined";
menuItem11.IconSvg = "ClockCircleOutlined";
menuItem11.Text = "Option 2";
menuItem9.Sub.Add(menuItem10);
menuItem9.Sub.Add(menuItem11);
menuItem9.Text = "Item 1";
menuItem9.IconSvg = "MenuOutlined";
menuItem12.Expand = false;
menuItem12.IconSvg = "InfoCircleOutlined";
menuItem13.Text = "Option 3";
menuItem14.Text = "Option 4";
menuItem12.Sub.Add(menuItem13);
menuItem12.Sub.Add(menuItem14);
menuItem12.Text = "Item 2";
menuItem12.IconSvg = "InfoCircleOutlined";
menuItem12.Expand = false;
menuItem8.Sub.Add(menuItem9);
menuItem8.Sub.Add(menuItem12);
menuItem8.Text = "Navigation One";
@@ -216,6 +216,7 @@ namespace Demo.Controls
menu2.Items.Add(menuItem21);
menu2.Location = new Point(0, 0);
menu2.Name = "menu2";
menu2.ScrollBarBlock = true;
menu2.Size = new Size(251, 460);
menu2.TabIndex = 4;
//
@@ -262,18 +263,6 @@ namespace Demo.Controls
switch4.UnCheckedText = "展开";
switch4.CheckedChanged += switch4_CheckedChanged;
//
// switch5
//
switch5.CheckedText = "平展";
switch5.LocalizationCheckedText = "Menu.flatten";
switch5.LocalizationUnCheckedText = "Menu.indent";
switch5.Location = new Point(267, 91);
switch5.Name = "switch5";
switch5.Size = new Size(84, 33);
switch5.TabIndex = 5;
switch5.UnCheckedText = "缩进";
switch5.CheckedChanged += switch5_CheckedChanged;
//
// menu3
//
menu3.Dock = DockStyle.Left;
@@ -321,6 +310,7 @@ namespace Demo.Controls
menu3.Location = new Point(0, 0);
menu3.Mode = AntdUI.TMenuMode.Vertical;
menu3.Name = "menu3";
menu3.ScrollBarBlock = true;
menu3.Size = new Size(247, 460);
menu3.TabIndex = 4;
//
@@ -335,7 +325,7 @@ namespace Demo.Controls
switch3.CheckedChanged += switch3_CheckedChanged;
//
// panel1
//
//
panel1.Controls.Add(switch5);
panel1.Controls.Add(switch2);
panel1.Controls.Add(switch1);
@@ -347,6 +337,18 @@ namespace Demo.Controls
panel1.Size = new Size(650, 460);
panel1.TabIndex = 0;
//
// switch5
//
switch5.CheckedText = "平展";
switch5.LocalizationCheckedText = "Menu.flatten";
switch5.LocalizationUnCheckedText = "Menu.indent";
switch5.Location = new Point(267, 91);
switch5.Name = "switch5";
switch5.Size = new Size(84, 33);
switch5.TabIndex = 5;
switch5.UnCheckedText = "缩进";
switch5.CheckedChanged += switch5_CheckedChanged;
//
// switch2
//
switch2.CheckedText = "折叠";

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -70,9 +70,9 @@ namespace Demo.Controls
button1.AutoSizeMode = AntdUI.TAutoSize.Width;
button1.Dock = DockStyle.Right;
button1.LocalizationText = "PageHeader.Type";
button1.Location = new Point(657, 0);
button1.Location = new Point(639, 0);
button1.Name = "button1";
button1.Size = new Size(75, 36);
button1.Size = new Size(93, 36);
button1.TabIndex = 0;
button1.Text = "显示返回";
button1.ToggleType = AntdUI.TTypeMini.Primary;
@@ -154,6 +154,7 @@ namespace Demo.Controls
Name = "PageHeader";
Size = new Size(740, 402);
pageHeader1.ResumeLayout(false);
pageHeader1.PerformLayout();
ResumeLayout(false);
}

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -248,7 +248,7 @@ namespace Demo.Controls
button2.LocalizationText = "Popover.{id}";
button2.Location = new Point(145, 17);
button2.Name = "button2";
button2.Size = new Size(182, 47);
button2.Size = new Size(173, 46);
button2.TabIndex = 7;
button2.Text = "自定义控件内容弹出";
button2.Type = AntdUI.TTypeMini.Primary;
@@ -260,7 +260,7 @@ namespace Demo.Controls
button1.LocalizationText = "Popover.{id}";
button1.Location = new Point(14, 17);
button1.Name = "button1";
button1.Size = new Size(100, 47);
button1.Size = new Size(93, 46);
button1.TabIndex = 7;
button1.Text = "普通弹出";
button1.Type = AntdUI.TTypeMini.Primary;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -27,6 +27,9 @@ namespace Demo.Controls
private void InitializeComponent()
{
AntdUI.ImagePreviewItem imagePreviewItem1 = new AntdUI.ImagePreviewItem();
AntdUI.ImagePreviewItem imagePreviewItem2 = new AntdUI.ImagePreviewItem();
AntdUI.ImagePreviewItem imagePreviewItem3 = new AntdUI.ImagePreviewItem();
header1 = new AntdUI.PageHeader();
panel1 = new FlowLayoutPanel();
button1 = new AntdUI.Button();
@@ -34,6 +37,7 @@ namespace Demo.Controls
button3 = new AntdUI.Button();
button4 = new AntdUI.Button();
divider1 = new AntdUI.Divider();
imagePreview1 = new AntdUI.ImagePreview();
panel1.SuspendLayout();
SuspendLayout();
//
@@ -71,7 +75,7 @@ namespace Demo.Controls
button1.LocalizationText = "Preview.{id}";
button1.Location = new Point(3, 3);
button1.Name = "button1";
button1.Size = new Size(166, 47);
button1.Size = new Size(157, 46);
button1.TabIndex = 0;
button1.Text = "弹出一张图片预览";
button1.Click += button1_Click;
@@ -81,9 +85,9 @@ namespace Demo.Controls
button2.AutoSizeMode = AntdUI.TAutoSize.Auto;
button2.BorderWidth = 1F;
button2.LocalizationText = "Preview.{id}";
button2.Location = new Point(175, 3);
button2.Location = new Point(166, 3);
button2.Name = "button2";
button2.Size = new Size(166, 47);
button2.Size = new Size(157, 46);
button2.TabIndex = 0;
button2.Text = "弹出多张图片预览";
button2.Click += button2_Click;
@@ -93,9 +97,9 @@ namespace Demo.Controls
button3.AutoSizeMode = AntdUI.TAutoSize.Auto;
button3.BorderWidth = 1F;
button3.LocalizationText = "Preview.{id}";
button3.Location = new Point(347, 3);
button3.Location = new Point(329, 3);
button3.Name = "button3";
button3.Size = new Size(133, 47);
button3.Size = new Size(125, 46);
button3.TabIndex = 1;
button3.Text = "动态加载图片";
button3.Click += button3_Click;
@@ -105,9 +109,9 @@ namespace Demo.Controls
button4.AutoSizeMode = AntdUI.TAutoSize.Auto;
button4.BorderWidth = 1F;
button4.LocalizationText = "Preview.{id}";
button4.Location = new Point(3, 56);
button4.Location = new Point(3, 55);
button4.Name = "button4";
button4.Size = new Size(215, 47);
button4.Size = new Size(205, 46);
button4.TabIndex = 2;
button4.Text = "弹出多张图片带文字预览";
button4.Click += button4_Click;
@@ -124,8 +128,30 @@ namespace Demo.Controls
divider1.TabIndex = 5;
divider1.Text = "基本";
//
// imagePreview1
//
imagePreview1.Dock = DockStyle.Fill;
imagePreviewItem1.Call = null;
imagePreviewItem1.CallProg = null;
imagePreviewItem1.Img = Properties.Resources.bg7;
imagePreviewItem2.Call = null;
imagePreviewItem2.CallProg = null;
imagePreviewItem2.Img = Properties.Resources.bg2;
imagePreviewItem3.Call = null;
imagePreviewItem3.CallProg = null;
imagePreviewItem3.Img = Properties.Resources.bg5;
imagePreview1.Image.Add(imagePreviewItem1);
imagePreview1.Image.Add(imagePreviewItem2);
imagePreview1.Image.Add(imagePreviewItem3);
imagePreview1.Location = new Point(0, 212);
imagePreview1.Name = "imagePreview1";
imagePreview1.Size = new Size(614, 234);
imagePreview1.TabIndex = 6;
imagePreview1.Text = "imagePreview1";
//
// Preview
//
Controls.Add(imagePreview1);
Controls.Add(panel1);
Controls.Add(divider1);
Controls.Add(header1);
@@ -146,5 +172,6 @@ namespace Demo.Controls
private AntdUI.Button button2;
private AntdUI.Button button3;
private AntdUI.Button button4;
private AntdUI.ImagePreview imagePreview1;
}
}

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -27,35 +27,35 @@ namespace Demo.Controls
private void InitializeComponent()
{
AntdUI.SegmentedItem segmentedItem19 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem20 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem21 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem22 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem23 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem24 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem25 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem26 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem27 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem28 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem29 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem30 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem31 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem32 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem33 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem34 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem35 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem36 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem1 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem2 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem3 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem4 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem5 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem6 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem7 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem8 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem9 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem10 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem11 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem12 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem13 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem14 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem15 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem16 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem17 = new AntdUI.SegmentedItem();
AntdUI.SegmentedItem segmentedItem18 = new AntdUI.SegmentedItem();
header1 = new AntdUI.PageHeader();
panel1 = new System.Windows.Forms.Panel();
segmented5 = new AntdUI.Segmented();
divider4 = new AntdUI.Divider();
segmented4 = new AntdUI.Segmented();
divider3 = new AntdUI.Divider();
segmented3 = new AntdUI.Segmented();
divider2 = new AntdUI.Divider();
segmented2 = new AntdUI.Segmented();
divider1 = new AntdUI.Divider();
segmented1 = new AntdUI.Segmented();
divider3 = new AntdUI.Divider();
segmented4 = new AntdUI.Segmented();
divider4 = new AntdUI.Divider();
segmented5 = new AntdUI.Segmented();
panel1.SuspendLayout();
SuspendLayout();
//
@@ -92,55 +92,69 @@ namespace Demo.Controls
panel1.Size = new Size(1300, 602);
panel1.TabIndex = 7;
//
// segmented5
//
segmented5.Dock = DockStyle.Top;
segmented5.IconRatio = 0.8F;
segmentedItem1.IconSvg = "SunOutlined";
segmentedItem2.IconSvg = "MoonOutlined";
segmented5.Items.Add(segmentedItem1);
segmented5.Items.Add(segmentedItem2);
segmented5.Location = new Point(0, 292);
segmented5.Name = "segmented5";
segmented5.Round = true;
segmented5.SelectIndex = 0;
segmented5.Size = new Size(1300, 39);
segmented5.TabIndex = 4;
//
// divider4
//
divider4.Dock = DockStyle.Top;
divider4.Location = new Point(0, 272);
divider4.Name = "divider4";
divider4.Size = new Size(1300, 20);
divider4.TabIndex = 0;
//
// segmented4
//
segmented4.Dock = DockStyle.Top;
segmentedItem3.Text = "small";
segmentedItem4.Text = "middle";
segmentedItem5.Text = "large";
segmented4.Items.Add(segmentedItem3);
segmented4.Items.Add(segmentedItem4);
segmented4.Items.Add(segmentedItem5);
segmented4.Location = new Point(0, 233);
segmented4.Name = "segmented4";
segmented4.SelectIndex = 1;
segmented4.Size = new Size(1300, 39);
segmented4.TabIndex = 3;
//
// divider3
//
divider3.Dock = DockStyle.Top;
divider3.Location = new Point(0, 213);
divider3.Name = "divider3";
divider3.Size = new Size(1300, 20);
divider3.TabIndex = 0;
//
// segmented3
//
segmented3.Dock = DockStyle.Top;
segmented3.IconAlign = AntdUI.TAlignMini.Left;
segmentedItem19.Badge = null;
segmentedItem19.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem19.BadgeBack = null;
segmentedItem19.BadgeMode = false;
segmentedItem19.BadgeOffsetX = 0;
segmentedItem19.BadgeOffsetY = 0;
segmentedItem19.BadgeSize = 0.6F;
segmentedItem19.BadgeSvg = null;
segmentedItem19.IconSvg = "GiftFilled";
segmentedItem19.Text = "Daily";
segmentedItem20.Badge = null;
segmentedItem20.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem20.BadgeBack = null;
segmentedItem20.BadgeMode = false;
segmentedItem20.BadgeOffsetX = 0;
segmentedItem20.BadgeOffsetY = 0;
segmentedItem20.BadgeSize = 0.6F;
segmentedItem20.BadgeSvg = null;
segmentedItem20.IconSvg = "TrophyFilled";
segmentedItem20.Text = "Weekly";
segmentedItem21.Badge = null;
segmentedItem21.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem21.BadgeBack = null;
segmentedItem21.BadgeMode = false;
segmentedItem21.BadgeOffsetX = 0;
segmentedItem21.BadgeOffsetY = 0;
segmentedItem21.BadgeSize = 0.6F;
segmentedItem21.BadgeSvg = null;
segmentedItem21.IconSvg = "DashboardFilled";
segmentedItem21.Text = "Monthly";
segmentedItem22.Badge = null;
segmentedItem22.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem22.BadgeBack = null;
segmentedItem22.BadgeMode = false;
segmentedItem22.BadgeOffsetX = 0;
segmentedItem22.BadgeOffsetY = 0;
segmentedItem22.BadgeSize = 0.6F;
segmentedItem22.BadgeSvg = null;
segmentedItem22.IconActiveSvg = "HeartFilled";
segmentedItem22.IconSvg = "LikeFilled";
segmentedItem22.Text = "Quarterly";
segmented3.Items.Add(segmentedItem19);
segmented3.Items.Add(segmentedItem20);
segmented3.Items.Add(segmentedItem21);
segmented3.Items.Add(segmentedItem22);
segmentedItem6.IconSvg = "GiftFilled";
segmentedItem6.Text = "Daily";
segmentedItem7.IconSvg = "TrophyFilled";
segmentedItem7.Text = "Weekly";
segmentedItem8.IconSvg = "DashboardFilled";
segmentedItem8.Text = "Monthly";
segmentedItem9.IconActiveSvg = "HeartFilled";
segmentedItem9.IconSvg = "LikeFilled";
segmentedItem9.Text = "Quarterly";
segmented3.Items.Add(segmentedItem6);
segmented3.Items.Add(segmentedItem7);
segmented3.Items.Add(segmentedItem8);
segmented3.Items.Add(segmentedItem9);
segmented3.Location = new Point(0, 168);
segmented3.Name = "segmented3";
segmented3.SelectIndex = 0;
@@ -158,51 +172,19 @@ namespace Demo.Controls
// segmented2
//
segmented2.Dock = DockStyle.Top;
segmentedItem23.Badge = null;
segmentedItem23.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem23.BadgeBack = null;
segmentedItem23.BadgeMode = false;
segmentedItem23.BadgeOffsetX = 0;
segmentedItem23.BadgeOffsetY = 0;
segmentedItem23.BadgeSize = 0.6F;
segmentedItem23.BadgeSvg = null;
segmentedItem23.IconSvg = "GiftFilled";
segmentedItem23.Text = "Daily";
segmentedItem24.Badge = null;
segmentedItem24.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem24.BadgeBack = null;
segmentedItem24.BadgeMode = false;
segmentedItem24.BadgeOffsetX = 0;
segmentedItem24.BadgeOffsetY = 0;
segmentedItem24.BadgeSize = 0.6F;
segmentedItem24.BadgeSvg = null;
segmentedItem24.IconSvg = "TrophyFilled";
segmentedItem24.Text = "Weekly";
segmentedItem25.Badge = null;
segmentedItem25.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem25.BadgeBack = null;
segmentedItem25.BadgeMode = false;
segmentedItem25.BadgeOffsetX = 0;
segmentedItem25.BadgeOffsetY = 0;
segmentedItem25.BadgeSize = 0.6F;
segmentedItem25.BadgeSvg = null;
segmentedItem25.IconSvg = "DashboardFilled";
segmentedItem25.Text = "Monthly";
segmentedItem26.Badge = null;
segmentedItem26.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem26.BadgeBack = null;
segmentedItem26.BadgeMode = false;
segmentedItem26.BadgeOffsetX = 0;
segmentedItem26.BadgeOffsetY = 0;
segmentedItem26.BadgeSize = 0.6F;
segmentedItem26.BadgeSvg = null;
segmentedItem26.IconActiveSvg = "HeartFilled";
segmentedItem26.IconSvg = "LikeFilled";
segmentedItem26.Text = "Quarterly";
segmented2.Items.Add(segmentedItem23);
segmented2.Items.Add(segmentedItem24);
segmented2.Items.Add(segmentedItem25);
segmented2.Items.Add(segmentedItem26);
segmentedItem10.IconSvg = "GiftFilled";
segmentedItem10.Text = "Daily";
segmentedItem11.IconSvg = "TrophyFilled";
segmentedItem11.Text = "Weekly";
segmentedItem12.IconSvg = "DashboardFilled";
segmentedItem12.Text = "Monthly";
segmentedItem13.IconActiveSvg = "HeartFilled";
segmentedItem13.IconSvg = "LikeFilled";
segmentedItem13.Text = "Quarterly";
segmented2.Items.Add(segmentedItem10);
segmented2.Items.Add(segmentedItem11);
segmented2.Items.Add(segmentedItem12);
segmented2.Items.Add(segmentedItem13);
segmented2.Location = new Point(0, 59);
segmented2.Margin = new Padding(1);
segmented2.Name = "segmented2";
@@ -221,147 +203,21 @@ namespace Demo.Controls
// segmented1
//
segmented1.Dock = DockStyle.Top;
segmentedItem27.Badge = null;
segmentedItem27.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem27.BadgeBack = null;
segmentedItem27.BadgeMode = false;
segmentedItem27.BadgeOffsetX = 0;
segmentedItem27.BadgeOffsetY = 0;
segmentedItem27.BadgeSize = 0.6F;
segmentedItem27.BadgeSvg = null;
segmentedItem27.Text = "Daily";
segmentedItem28.Badge = null;
segmentedItem28.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem28.BadgeBack = null;
segmentedItem28.BadgeMode = false;
segmentedItem28.BadgeOffsetX = 0;
segmentedItem28.BadgeOffsetY = 0;
segmentedItem28.BadgeSize = 0.6F;
segmentedItem28.BadgeSvg = null;
segmentedItem28.Text = "Weekly";
segmentedItem29.Badge = null;
segmentedItem29.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem29.BadgeBack = null;
segmentedItem29.BadgeMode = false;
segmentedItem29.BadgeOffsetX = 0;
segmentedItem29.BadgeOffsetY = 0;
segmentedItem29.BadgeSize = 0.6F;
segmentedItem29.BadgeSvg = null;
segmentedItem29.Text = "Monthly";
segmentedItem30.Badge = null;
segmentedItem30.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem30.BadgeBack = null;
segmentedItem30.BadgeMode = false;
segmentedItem30.BadgeOffsetX = 0;
segmentedItem30.BadgeOffsetY = 0;
segmentedItem30.BadgeSize = 0.6F;
segmentedItem30.BadgeSvg = null;
segmentedItem30.Text = "Quarterly";
segmentedItem31.Badge = null;
segmentedItem31.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem31.BadgeBack = null;
segmentedItem31.BadgeMode = false;
segmentedItem31.BadgeOffsetX = 0;
segmentedItem31.BadgeOffsetY = 0;
segmentedItem31.BadgeSize = 0.6F;
segmentedItem31.BadgeSvg = null;
segmentedItem31.Text = "Yearly";
segmented1.Items.Add(segmentedItem27);
segmented1.Items.Add(segmentedItem28);
segmented1.Items.Add(segmentedItem29);
segmented1.Items.Add(segmentedItem30);
segmented1.Items.Add(segmentedItem31);
segmentedItem14.Text = "Daily";
segmentedItem15.Text = "Weekly";
segmentedItem16.Text = "Monthly";
segmentedItem17.Text = "Quarterly";
segmentedItem18.Text = "Yearly";
segmented1.Items.Add(segmentedItem14);
segmented1.Items.Add(segmentedItem15);
segmented1.Items.Add(segmentedItem16);
segmented1.Items.Add(segmentedItem17);
segmented1.Items.Add(segmentedItem18);
segmented1.Location = new Point(0, 0);
segmented1.Name = "segmented1";
segmented1.Size = new Size(1300, 39);
segmented1.TabIndex = 0;
//
// divider3
//
divider3.Dock = DockStyle.Top;
divider3.Location = new Point(0, 213);
divider3.Name = "divider3";
divider3.Size = new Size(1300, 20);
divider3.TabIndex = 0;
//
// segmented4
//
segmented4.Dock = DockStyle.Top;
segmentedItem32.Badge = null;
segmentedItem32.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem32.BadgeBack = null;
segmentedItem32.BadgeMode = false;
segmentedItem32.BadgeOffsetX = 0;
segmentedItem32.BadgeOffsetY = 0;
segmentedItem32.BadgeSize = 0.6F;
segmentedItem32.BadgeSvg = null;
segmentedItem32.Text = "small";
segmentedItem33.Badge = null;
segmentedItem33.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem33.BadgeBack = null;
segmentedItem33.BadgeMode = false;
segmentedItem33.BadgeOffsetX = 0;
segmentedItem33.BadgeOffsetY = 0;
segmentedItem33.BadgeSize = 0.6F;
segmentedItem33.BadgeSvg = null;
segmentedItem33.Text = "middle";
segmentedItem34.Badge = null;
segmentedItem34.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem34.BadgeBack = null;
segmentedItem34.BadgeMode = false;
segmentedItem34.BadgeOffsetX = 0;
segmentedItem34.BadgeOffsetY = 0;
segmentedItem34.BadgeSize = 0.6F;
segmentedItem34.BadgeSvg = null;
segmentedItem34.Text = "large";
segmented4.Items.Add(segmentedItem32);
segmented4.Items.Add(segmentedItem33);
segmented4.Items.Add(segmentedItem34);
segmented4.Location = new Point(0, 233);
segmented4.Name = "segmented4";
segmented4.SelectIndex = 1;
segmented4.Size = new Size(1300, 39);
segmented4.TabIndex = 3;
//
// divider4
//
divider4.Dock = DockStyle.Top;
divider4.Location = new Point(0, 272);
divider4.Name = "divider4";
divider4.Size = new Size(1300, 20);
divider4.TabIndex = 0;
//
// segmented5
//
segmented5.Dock = DockStyle.Top;
segmented5.IconRatio = 0.8F;
segmentedItem35.Badge = null;
segmentedItem35.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem35.BadgeBack = null;
segmentedItem35.BadgeMode = false;
segmentedItem35.BadgeOffsetX = 0;
segmentedItem35.BadgeOffsetY = 0;
segmentedItem35.BadgeSize = 0.6F;
segmentedItem35.BadgeSvg = null;
segmentedItem35.IconSvg = "SunOutlined";
segmentedItem36.Badge = null;
segmentedItem36.BadgeAlign = AntdUI.TAlign.TR;
segmentedItem36.BadgeBack = null;
segmentedItem36.BadgeMode = false;
segmentedItem36.BadgeOffsetX = 0;
segmentedItem36.BadgeOffsetY = 0;
segmentedItem36.BadgeSize = 0.6F;
segmentedItem36.BadgeSvg = null;
segmentedItem36.IconSvg = "MoonOutlined";
segmented5.Items.Add(segmentedItem35);
segmented5.Items.Add(segmentedItem36);
segmented5.Location = new Point(0, 292);
segmented5.Name = "segmented5";
segmented5.Round = true;
segmented5.SelectIndex = 0;
segmented5.Size = new Size(1300, 39);
segmented5.TabIndex = 4;
//
// Segmented
//
Controls.Add(panel1);

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
<!--
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
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>
@@ -26,36 +26,36 @@
<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
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
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
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
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
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
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
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->

View File

@@ -99,9 +99,9 @@ namespace Demo.Controls
//
button2.AutoSizeMode = AntdUI.TAutoSize.Width;
button2.LocalizationText = "Signal.Subtract";
button2.Location = new Point(59, 7);
button2.Location = new Point(54, 7);
button2.Name = "button2";
button2.Size = new Size(50, 38);
button2.Size = new Size(45, 38);
button2.TabIndex = 10;
button2.Text = "减";
button2.Type = AntdUI.TTypeMini.Success;
@@ -113,7 +113,7 @@ namespace Demo.Controls
button1.LocalizationText = "Signal.Add";
button1.Location = new Point(3, 7);
button1.Name = "button1";
button1.Size = new Size(50, 38);
button1.Size = new Size(45, 38);
button1.TabIndex = 9;
button1.Text = "加";
button1.Type = AntdUI.TTypeMini.Primary;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -38,9 +38,9 @@ namespace Demo.Controls
divider2 = new AntdUI.Divider();
divider3 = new AntdUI.Divider();
stackPanel3 = new AntdUI.StackPanel();
buttonError = new AntdUI.Button();
btnWindow = new AntdUI.Button();
btnControl = new AntdUI.Button();
buttonError = new AntdUI.Button();
stackPanel1.SuspendLayout();
stackPanel2.SuspendLayout();
stackPanel3.SuspendLayout();
@@ -175,6 +175,18 @@ namespace Demo.Controls
stackPanel3.Size = new Size(596, 48);
stackPanel3.TabIndex = 3;
//
// buttonError
//
buttonError.AutoSizeMode = AntdUI.TAutoSize.Width;
buttonError.LocalizationText = "Spin.{id}";
buttonError.Location = new Point(300, 3);
buttonError.Name = "buttonError";
buttonError.Size = new Size(109, 42);
buttonError.TabIndex = 4;
buttonError.Text = "带错误回调";
buttonError.Type = AntdUI.TTypeMini.Error;
buttonError.Click += buttonError_Click;
//
// btnWindow
//
btnWindow.AutoSizeMode = AntdUI.TAutoSize.Width;
@@ -199,18 +211,6 @@ namespace Demo.Controls
btnControl.Type = AntdUI.TTypeMini.Primary;
btnControl.Click += btnControl_Click;
//
// buttonError
//
buttonError.AutoSizeMode = AntdUI.TAutoSize.Width;
buttonError.LocalizationText = "Spin.{id}";
buttonError.Location = new Point(300, 3);
buttonError.Name = "buttonError";
buttonError.Size = new Size(109, 42);
buttonError.TabIndex = 4;
buttonError.Text = "带错误回调";
buttonError.Type = AntdUI.TTypeMini.Error;
buttonError.Click += buttonError_Click;
//
// Spin
//
Controls.Add(stackPanel3);

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -131,7 +131,7 @@ namespace Demo.Controls
checkboxSummaryCustomize.AutoSizeMode = AntdUI.TAutoSize.Width;
checkboxSummaryCustomize.Dock = DockStyle.Left;
checkboxSummaryCustomize.LocalizationText = "Table.{id}";
checkboxSummaryCustomize.Location = new Point(1531, 0);
checkboxSummaryCustomize.Location = new Point(1605, 0);
checkboxSummaryCustomize.Name = "checkboxSummaryCustomize";
checkboxSummaryCustomize.Size = new Size(101, 41);
checkboxSummaryCustomize.TabIndex = 16;
@@ -144,7 +144,7 @@ namespace Demo.Controls
checkboxFocusNavigation.Checked = true;
checkboxFocusNavigation.Dock = DockStyle.Left;
checkboxFocusNavigation.LocalizationText = "Table.{id}";
checkboxFocusNavigation.Location = new Point(1417, 0);
checkboxFocusNavigation.Location = new Point(1491, 0);
checkboxFocusNavigation.Name = "checkboxFocusNavigation";
checkboxFocusNavigation.Size = new Size(114, 41);
checkboxFocusNavigation.TabIndex = 15;
@@ -158,7 +158,7 @@ namespace Demo.Controls
selectFocusedStyle.List = true;
selectFocusedStyle.ListAutoWidth = true;
selectFocusedStyle.LocalizationPlaceholderText = "Table.{id}";
selectFocusedStyle.Location = new Point(1303, 0);
selectFocusedStyle.Location = new Point(1377, 0);
selectFocusedStyle.Name = "selectFocusedStyle";
selectFocusedStyle.PlaceholderText = "焦点列样式";
selectFocusedStyle.Size = new Size(114, 41);
@@ -173,7 +173,7 @@ namespace Demo.Controls
selectEditStyle.List = true;
selectEditStyle.ListAutoWidth = true;
selectEditStyle.LocalizationPlaceholderText = "Table.{id}";
selectEditStyle.Location = new Point(1203, 0);
selectEditStyle.Location = new Point(1277, 0);
selectEditStyle.Name = "selectEditStyle";
selectEditStyle.PlaceholderText = "编辑风格";
selectEditStyle.Size = new Size(100, 41);
@@ -187,7 +187,7 @@ namespace Demo.Controls
selectEditMode.List = true;
selectEditMode.ListAutoWidth = true;
selectEditMode.LocalizationPlaceholderText = "Table.{id}";
selectEditMode.Location = new Point(1099, 0);
selectEditMode.Location = new Point(1173, 0);
selectEditMode.Name = "selectEditMode";
selectEditMode.PlaceholderText = "编辑模式";
selectEditMode.Size = new Size(104, 41);
@@ -199,7 +199,7 @@ namespace Demo.Controls
checkScrollBarAvoidHeader.AutoSizeMode = AntdUI.TAutoSize.Width;
checkScrollBarAvoidHeader.Dock = DockStyle.Left;
checkScrollBarAvoidHeader.LocalizationText = "Table.{id}";
checkScrollBarAvoidHeader.Location = new Point(958, 0);
checkScrollBarAvoidHeader.Location = new Point(1032, 0);
checkScrollBarAvoidHeader.Name = "checkScrollBarAvoidHeader";
checkScrollBarAvoidHeader.Size = new Size(141, 41);
checkScrollBarAvoidHeader.TabIndex = 11;
@@ -211,9 +211,9 @@ namespace Demo.Controls
checkTree.AutoSizeMode = AntdUI.TAutoSize.Width;
checkTree.Dock = DockStyle.Left;
checkTree.LocalizationText = "Table.{id}";
checkTree.Location = new Point(870, 0);
checkTree.Location = new Point(958, 0);
checkTree.Name = "checkTree";
checkTree.Size = new Size(88, 41);
checkTree.Size = new Size(74, 41);
checkTree.TabIndex = 10;
checkTree.Text = "树表格";
checkTree.CheckedChanged += checkTree_CheckedChanged;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -310,14 +310,14 @@ namespace Demo.Controls
checkFixedHeader.Text = "固定表头";
checkFixedHeader.CheckedChanged += checkFixedHeader_CheckedChanged;
//
// Table
// TableAOT
//
Controls.Add(table1);
Controls.Add(pagination1);
Controls.Add(panel1);
Controls.Add(header1);
Font = new Font("Microsoft YaHei UI", 12F);
Name = "Table";
Name = "TableAOT";
Size = new Size(1300, 676);
panel1.ResumeLayout(false);
panel1.PerformLayout();

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -33,6 +33,9 @@ namespace Demo.Controls
header1 = new AntdUI.PageHeader();
panel1 = new System.Windows.Forms.Panel();
tabs3 = new AntdUI.Tabs();
tabPage16 = new AntdUI.TabPage();
tabPage17 = new AntdUI.TabPage();
tabPage18 = new AntdUI.TabPage();
divider3 = new AntdUI.Divider();
tabs_close = new AntdUI.Tabs();
divider2 = new AntdUI.Divider();
@@ -68,9 +71,6 @@ namespace Demo.Controls
tabPage15 = new AntdUI.TabPage();
label15 = new AntdUI.Label();
divider1 = new AntdUI.Divider();
tabPage16 = new AntdUI.TabPage();
tabPage17 = new AntdUI.TabPage();
tabPage18 = new AntdUI.TabPage();
panel1.SuspendLayout();
tabs3.SuspendLayout();
tabs1.SuspendLayout();
@@ -125,9 +125,6 @@ namespace Demo.Controls
// tabs3
//
tabs3.Centered = true;
tabs3.Controls.Add(tabPage16);
tabs3.Controls.Add(tabPage17);
tabs3.Controls.Add(tabPage18);
tabs3.Cursor = Cursors.Hand;
tabs3.Dock = DockStyle.Top;
tabs3.Gap = 12;
@@ -141,6 +138,35 @@ namespace Demo.Controls
tabs3.TabIndex = 3;
tabs3.Text = "tabs3";
//
// tabPage16
//
tabPage16.Badge = "99";
tabPage16.Dock = DockStyle.Fill;
tabPage16.IconSvg = "AppleFilled";
tabPage16.Location = new Point(0, 39);
tabPage16.Name = "tabPage16";
tabPage16.Size = new Size(750, 81);
tabPage16.TabIndex = 0;
tabPage16.Text = "Tab1";
//
// tabPage17
//
tabPage17.Dock = DockStyle.Fill;
tabPage17.Location = new Point(0, 39);
tabPage17.Name = "tabPage17";
tabPage17.Size = new Size(750, 81);
tabPage17.TabIndex = 1;
tabPage17.Text = "Tab2";
//
// tabPage18
//
tabPage18.Dock = DockStyle.Fill;
tabPage18.Location = new Point(0, 39);
tabPage18.Name = "tabPage18";
tabPage18.Size = new Size(750, 81);
tabPage18.TabIndex = 2;
tabPage18.Text = "Tab3";
//
// divider3
//
divider3.Dock = DockStyle.Top;
@@ -182,21 +208,6 @@ namespace Demo.Controls
//
// tabs1
//
tabs1.Controls.Add(tabPage1);
tabs1.Controls.Add(tabPage2);
tabs1.Controls.Add(tabPage3);
tabs1.Controls.Add(tabPage4);
tabs1.Controls.Add(tabPage5);
tabs1.Controls.Add(tabPage6);
tabs1.Controls.Add(tabPage7);
tabs1.Controls.Add(tabPage8);
tabs1.Controls.Add(tabPage9);
tabs1.Controls.Add(tabPage10);
tabs1.Controls.Add(tabPage11);
tabs1.Controls.Add(tabPage12);
tabs1.Controls.Add(tabPage13);
tabs1.Controls.Add(tabPage14);
tabs1.Controls.Add(tabPage15);
tabs1.Dock = DockStyle.Top;
tabs1.Gap = 12;
tabs1.Location = new Point(0, 28);
@@ -224,10 +235,11 @@ namespace Demo.Controls
// tabPage1
//
tabPage1.Controls.Add(label1);
tabPage1.Dock = DockStyle.Fill;
tabPage1.IconSvg = "AppleFilled";
tabPage1.Location = new Point(3, 38);
tabPage1.Location = new Point(0, 39);
tabPage1.Name = "tabPage1";
tabPage1.Size = new Size(744, 79);
tabPage1.Size = new Size(750, 81);
tabPage1.TabIndex = 0;
tabPage1.Text = "Tab1";
//
@@ -236,7 +248,7 @@ namespace Demo.Controls
label1.Dock = DockStyle.Fill;
label1.Location = new Point(0, 0);
label1.Name = "label1";
label1.Size = new Size(744, 79);
label1.Size = new Size(750, 81);
label1.TabIndex = 0;
label1.Text = "Content of Tab Pane 1";
label1.TextAlign = ContentAlignment.TopLeft;
@@ -244,9 +256,10 @@ namespace Demo.Controls
// tabPage2
//
tabPage2.Controls.Add(label2);
tabPage2.Location = new Point(0, 0);
tabPage2.Dock = DockStyle.Fill;
tabPage2.Location = new Point(0, 39);
tabPage2.Name = "tabPage2";
tabPage2.Size = new Size(0, 0);
tabPage2.Size = new Size(750, 81);
tabPage2.TabIndex = 1;
tabPage2.Text = "Tab2";
//
@@ -255,7 +268,7 @@ namespace Demo.Controls
label2.Dock = DockStyle.Fill;
label2.Location = new Point(0, 0);
label2.Name = "label2";
label2.Size = new Size(0, 0);
label2.Size = new Size(750, 81);
label2.TabIndex = 1;
label2.Text = "Content of Tab Pane 2";
label2.TextAlign = ContentAlignment.TopLeft;
@@ -263,9 +276,10 @@ namespace Demo.Controls
// tabPage3
//
tabPage3.Controls.Add(label3);
tabPage3.Location = new Point(0, 0);
tabPage3.Dock = DockStyle.Fill;
tabPage3.Location = new Point(0, 39);
tabPage3.Name = "tabPage3";
tabPage3.Size = new Size(0, 0);
tabPage3.Size = new Size(750, 81);
tabPage3.TabIndex = 2;
tabPage3.Text = "Tab3";
//
@@ -274,7 +288,7 @@ namespace Demo.Controls
label3.Dock = DockStyle.Fill;
label3.Location = new Point(0, 0);
label3.Name = "label3";
label3.Size = new Size(0, 0);
label3.Size = new Size(750, 81);
label3.TabIndex = 1;
label3.Text = "Content of Tab Pane 3";
label3.TextAlign = ContentAlignment.TopLeft;
@@ -282,9 +296,10 @@ namespace Demo.Controls
// tabPage4
//
tabPage4.Controls.Add(label4);
tabPage4.Location = new Point(0, 0);
tabPage4.Dock = DockStyle.Fill;
tabPage4.Location = new Point(0, 39);
tabPage4.Name = "tabPage4";
tabPage4.Size = new Size(0, 0);
tabPage4.Size = new Size(750, 81);
tabPage4.TabIndex = 3;
tabPage4.Text = "Tab4";
//
@@ -293,7 +308,7 @@ namespace Demo.Controls
label4.Dock = DockStyle.Fill;
label4.Location = new Point(0, 0);
label4.Name = "label4";
label4.Size = new Size(0, 0);
label4.Size = new Size(750, 81);
label4.TabIndex = 1;
label4.Text = "Content of Tab Pane 4";
label4.TextAlign = ContentAlignment.TopLeft;
@@ -301,9 +316,10 @@ namespace Demo.Controls
// tabPage5
//
tabPage5.Controls.Add(label5);
tabPage5.Location = new Point(0, 0);
tabPage5.Dock = DockStyle.Fill;
tabPage5.Location = new Point(0, 39);
tabPage5.Name = "tabPage5";
tabPage5.Size = new Size(0, 0);
tabPage5.Size = new Size(750, 81);
tabPage5.TabIndex = 4;
tabPage5.Text = "Tab5";
//
@@ -312,7 +328,7 @@ namespace Demo.Controls
label5.Dock = DockStyle.Fill;
label5.Location = new Point(0, 0);
label5.Name = "label5";
label5.Size = new Size(0, 0);
label5.Size = new Size(750, 81);
label5.TabIndex = 1;
label5.Text = "Content of Tab Pane 5";
label5.TextAlign = ContentAlignment.TopLeft;
@@ -320,9 +336,10 @@ namespace Demo.Controls
// tabPage6
//
tabPage6.Controls.Add(label6);
tabPage6.Location = new Point(0, 0);
tabPage6.Dock = DockStyle.Fill;
tabPage6.Location = new Point(0, 39);
tabPage6.Name = "tabPage6";
tabPage6.Size = new Size(0, 0);
tabPage6.Size = new Size(750, 81);
tabPage6.TabIndex = 5;
tabPage6.Text = "Tab6";
//
@@ -331,7 +348,7 @@ namespace Demo.Controls
label6.Dock = DockStyle.Fill;
label6.Location = new Point(0, 0);
label6.Name = "label6";
label6.Size = new Size(0, 0);
label6.Size = new Size(750, 81);
label6.TabIndex = 1;
label6.Text = "Content of Tab Pane 6";
label6.TextAlign = ContentAlignment.TopLeft;
@@ -339,9 +356,10 @@ namespace Demo.Controls
// tabPage7
//
tabPage7.Controls.Add(label7);
tabPage7.Location = new Point(0, 0);
tabPage7.Dock = DockStyle.Fill;
tabPage7.Location = new Point(0, 39);
tabPage7.Name = "tabPage7";
tabPage7.Size = new Size(0, 0);
tabPage7.Size = new Size(750, 81);
tabPage7.TabIndex = 6;
tabPage7.Text = "Tab7";
//
@@ -350,7 +368,7 @@ namespace Demo.Controls
label7.Dock = DockStyle.Fill;
label7.Location = new Point(0, 0);
label7.Name = "label7";
label7.Size = new Size(0, 0);
label7.Size = new Size(750, 81);
label7.TabIndex = 1;
label7.Text = "Content of Tab Pane 7";
label7.TextAlign = ContentAlignment.TopLeft;
@@ -358,9 +376,10 @@ namespace Demo.Controls
// tabPage8
//
tabPage8.Controls.Add(label8);
tabPage8.Location = new Point(0, 0);
tabPage8.Dock = DockStyle.Fill;
tabPage8.Location = new Point(0, 39);
tabPage8.Name = "tabPage8";
tabPage8.Size = new Size(0, 0);
tabPage8.Size = new Size(750, 81);
tabPage8.TabIndex = 7;
tabPage8.Text = "Tab8";
//
@@ -369,7 +388,7 @@ namespace Demo.Controls
label8.Dock = DockStyle.Fill;
label8.Location = new Point(0, 0);
label8.Name = "label8";
label8.Size = new Size(0, 0);
label8.Size = new Size(750, 81);
label8.TabIndex = 1;
label8.Text = "Content of Tab Pane 8";
label8.TextAlign = ContentAlignment.TopLeft;
@@ -377,9 +396,10 @@ namespace Demo.Controls
// tabPage9
//
tabPage9.Controls.Add(label9);
tabPage9.Location = new Point(0, 0);
tabPage9.Dock = DockStyle.Fill;
tabPage9.Location = new Point(0, 39);
tabPage9.Name = "tabPage9";
tabPage9.Size = new Size(0, 0);
tabPage9.Size = new Size(750, 81);
tabPage9.TabIndex = 8;
tabPage9.Text = "Tab9";
//
@@ -388,7 +408,7 @@ namespace Demo.Controls
label9.Dock = DockStyle.Fill;
label9.Location = new Point(0, 0);
label9.Name = "label9";
label9.Size = new Size(0, 0);
label9.Size = new Size(750, 81);
label9.TabIndex = 1;
label9.Text = "Content of Tab Pane 9";
label9.TextAlign = ContentAlignment.TopLeft;
@@ -396,9 +416,10 @@ namespace Demo.Controls
// tabPage10
//
tabPage10.Controls.Add(label10);
tabPage10.Location = new Point(0, 0);
tabPage10.Dock = DockStyle.Fill;
tabPage10.Location = new Point(0, 39);
tabPage10.Name = "tabPage10";
tabPage10.Size = new Size(0, 0);
tabPage10.Size = new Size(750, 81);
tabPage10.TabIndex = 9;
tabPage10.Text = "Tab10";
//
@@ -407,7 +428,7 @@ namespace Demo.Controls
label10.Dock = DockStyle.Fill;
label10.Location = new Point(0, 0);
label10.Name = "label10";
label10.Size = new Size(0, 0);
label10.Size = new Size(750, 81);
label10.TabIndex = 1;
label10.Text = "Content of Tab Pane 10";
label10.TextAlign = ContentAlignment.TopLeft;
@@ -415,9 +436,10 @@ namespace Demo.Controls
// tabPage11
//
tabPage11.Controls.Add(label11);
tabPage11.Location = new Point(0, 0);
tabPage11.Dock = DockStyle.Fill;
tabPage11.Location = new Point(0, 39);
tabPage11.Name = "tabPage11";
tabPage11.Size = new Size(0, 0);
tabPage11.Size = new Size(750, 81);
tabPage11.TabIndex = 10;
tabPage11.Text = "Tab11";
//
@@ -426,7 +448,7 @@ namespace Demo.Controls
label11.Dock = DockStyle.Fill;
label11.Location = new Point(0, 0);
label11.Name = "label11";
label11.Size = new Size(0, 0);
label11.Size = new Size(750, 81);
label11.TabIndex = 1;
label11.Text = "Content of Tab Pane 11";
label11.TextAlign = ContentAlignment.TopLeft;
@@ -434,9 +456,10 @@ namespace Demo.Controls
// tabPage12
//
tabPage12.Controls.Add(label12);
tabPage12.Location = new Point(0, 0);
tabPage12.Dock = DockStyle.Fill;
tabPage12.Location = new Point(0, 39);
tabPage12.Name = "tabPage12";
tabPage12.Size = new Size(0, 0);
tabPage12.Size = new Size(750, 81);
tabPage12.TabIndex = 11;
tabPage12.Text = "Tab12";
//
@@ -445,7 +468,7 @@ namespace Demo.Controls
label12.Dock = DockStyle.Fill;
label12.Location = new Point(0, 0);
label12.Name = "label12";
label12.Size = new Size(0, 0);
label12.Size = new Size(750, 81);
label12.TabIndex = 1;
label12.Text = "Content of Tab Pane 12";
label12.TextAlign = ContentAlignment.TopLeft;
@@ -453,9 +476,10 @@ namespace Demo.Controls
// tabPage13
//
tabPage13.Controls.Add(label13);
tabPage13.Location = new Point(0, 0);
tabPage13.Dock = DockStyle.Fill;
tabPage13.Location = new Point(0, 39);
tabPage13.Name = "tabPage13";
tabPage13.Size = new Size(0, 0);
tabPage13.Size = new Size(750, 81);
tabPage13.TabIndex = 12;
tabPage13.Text = "Tab13";
//
@@ -464,7 +488,7 @@ namespace Demo.Controls
label13.Dock = DockStyle.Fill;
label13.Location = new Point(0, 0);
label13.Name = "label13";
label13.Size = new Size(0, 0);
label13.Size = new Size(750, 81);
label13.TabIndex = 1;
label13.Text = "Content of Tab Pane 13";
label13.TextAlign = ContentAlignment.TopLeft;
@@ -472,9 +496,10 @@ namespace Demo.Controls
// tabPage14
//
tabPage14.Controls.Add(label14);
tabPage14.Location = new Point(0, 0);
tabPage14.Dock = DockStyle.Fill;
tabPage14.Location = new Point(0, 39);
tabPage14.Name = "tabPage14";
tabPage14.Size = new Size(0, 0);
tabPage14.Size = new Size(750, 81);
tabPage14.TabIndex = 13;
tabPage14.Text = "Tab14";
//
@@ -483,7 +508,7 @@ namespace Demo.Controls
label14.Dock = DockStyle.Fill;
label14.Location = new Point(0, 0);
label14.Name = "label14";
label14.Size = new Size(0, 0);
label14.Size = new Size(750, 81);
label14.TabIndex = 1;
label14.Text = "Content of Tab Pane 14";
label14.TextAlign = ContentAlignment.TopLeft;
@@ -491,9 +516,10 @@ namespace Demo.Controls
// tabPage15
//
tabPage15.Controls.Add(label15);
tabPage15.Location = new Point(0, 0);
tabPage15.Dock = DockStyle.Fill;
tabPage15.Location = new Point(0, 39);
tabPage15.Name = "tabPage15";
tabPage15.Size = new Size(0, 0);
tabPage15.Size = new Size(750, 81);
tabPage15.TabIndex = 14;
tabPage15.Text = "Tab15";
//
@@ -502,7 +528,7 @@ namespace Demo.Controls
label15.Dock = DockStyle.Fill;
label15.Location = new Point(0, 0);
label15.Name = "label15";
label15.Size = new Size(0, 0);
label15.Size = new Size(750, 81);
label15.TabIndex = 1;
label15.Text = "Content of Tab Pane 15";
label15.TextAlign = ContentAlignment.TopLeft;
@@ -519,32 +545,6 @@ namespace Demo.Controls
divider1.TabIndex = 0;
divider1.Text = "基本用法";
//
// tabPage16
//
tabPage16.Badge = "99";
tabPage16.IconSvg = "AppleFilled";
tabPage16.Location = new Point(3, 38);
tabPage16.Name = "tabPage16";
tabPage16.Size = new Size(744, 79);
tabPage16.TabIndex = 0;
tabPage16.Text = "Tab1";
//
// tabPage17
//
tabPage17.Location = new Point(0, 0);
tabPage17.Name = "tabPage17";
tabPage17.Size = new Size(0, 0);
tabPage17.TabIndex = 1;
tabPage17.Text = "Tab2";
//
// tabPage18
//
tabPage18.Location = new Point(0, 0);
tabPage18.Name = "tabPage18";
tabPage18.Size = new Size(0, 0);
tabPage18.TabIndex = 2;
tabPage18.Text = "Tab3";
//
// Tabs
//
Controls.Add(panel1);

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -107,7 +107,7 @@ namespace Demo.Controls
tag16.LocalizationText = "Tag.{id}";
tag16.Location = new Point(13, 13);
tag16.Name = "tag16";
tag16.Size = new Size(107, 27);
tag16.Size = new Size(98, 25);
tag16.TabIndex = 0;
tag16.Text = "自定义图标";
//
@@ -146,7 +146,7 @@ namespace Demo.Controls
tag15.BorderWidth = 0F;
tag15.Location = new Point(265, 45);
tag15.Name = "tag15";
tag15.Size = new Size(65, 27);
tag15.Size = new Size(59, 25);
tag15.TabIndex = 2;
tag15.Text = "default";
//
@@ -155,7 +155,7 @@ namespace Demo.Controls
tag10.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag10.Location = new Point(265, 13);
tag10.Name = "tag10";
tag10.Size = new Size(65, 27);
tag10.Size = new Size(59, 25);
tag10.TabIndex = 2;
tag10.Text = "default";
//
@@ -165,7 +165,7 @@ namespace Demo.Controls
tag14.BorderWidth = 0F;
tag14.Location = new Point(216, 45);
tag14.Name = "tag14";
tag14.Size = new Size(45, 27);
tag14.Size = new Size(39, 25);
tag14.TabIndex = 2;
tag14.Text = "info";
tag14.Type = AntdUI.TTypeMini.Info;
@@ -175,7 +175,7 @@ namespace Demo.Controls
tag9.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag9.Location = new Point(216, 13);
tag9.Name = "tag9";
tag9.Size = new Size(45, 27);
tag9.Size = new Size(39, 25);
tag9.TabIndex = 2;
tag9.Text = "info";
tag9.Type = AntdUI.TTypeMini.Info;
@@ -186,7 +186,7 @@ namespace Demo.Controls
tag13.BorderWidth = 0F;
tag13.Location = new Point(139, 45);
tag13.Name = "tag13";
tag13.Size = new Size(72, 27);
tag13.Size = new Size(66, 25);
tag13.TabIndex = 2;
tag13.Text = "warning";
tag13.Type = AntdUI.TTypeMini.Warn;
@@ -196,7 +196,7 @@ namespace Demo.Controls
tag8.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag8.Location = new Point(139, 13);
tag8.Name = "tag8";
tag8.Size = new Size(72, 27);
tag8.Size = new Size(66, 25);
tag8.TabIndex = 2;
tag8.Text = "warning";
tag8.Type = AntdUI.TTypeMini.Warn;
@@ -207,7 +207,7 @@ namespace Demo.Controls
tag12.BorderWidth = 0F;
tag12.Location = new Point(85, 45);
tag12.Name = "tag12";
tag12.Size = new Size(51, 27);
tag12.Size = new Size(46, 25);
tag12.TabIndex = 2;
tag12.Text = "error";
tag12.Type = AntdUI.TTypeMini.Error;
@@ -217,7 +217,7 @@ namespace Demo.Controls
tag7.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag7.Location = new Point(85, 13);
tag7.Name = "tag7";
tag7.Size = new Size(51, 27);
tag7.Size = new Size(46, 25);
tag7.TabIndex = 2;
tag7.Text = "error";
tag7.Type = AntdUI.TTypeMini.Error;
@@ -228,7 +228,7 @@ namespace Demo.Controls
tag11.BorderWidth = 0F;
tag11.Location = new Point(13, 45);
tag11.Name = "tag11";
tag11.Size = new Size(68, 27);
tag11.Size = new Size(62, 25);
tag11.TabIndex = 2;
tag11.Text = "success";
tag11.Type = AntdUI.TTypeMini.Success;
@@ -238,7 +238,7 @@ namespace Demo.Controls
tag6.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag6.Location = new Point(13, 13);
tag6.Name = "tag6";
tag6.Size = new Size(68, 27);
tag6.Size = new Size(62, 25);
tag6.TabIndex = 2;
tag6.Text = "success";
tag6.Type = AntdUI.TTypeMini.Success;
@@ -280,10 +280,10 @@ namespace Demo.Controls
tag5.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag5.CloseIcon = true;
tag5.Dock = DockStyle.Left;
tag5.Location = new Point(148, 0);
tag5.Location = new Point(134, 0);
tag5.Name = "tag5";
tag5.Padding = new Padding(0, 0, 6, 0);
tag5.Size = new Size(74, 27);
tag5.Size = new Size(67, 25);
tag5.TabIndex = 3;
tag5.Text = "Tag 3";
//
@@ -292,10 +292,10 @@ namespace Demo.Controls
tag4.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag4.CloseIcon = true;
tag4.Dock = DockStyle.Left;
tag4.Location = new Point(74, 0);
tag4.Location = new Point(67, 0);
tag4.Name = "tag4";
tag4.Padding = new Padding(0, 0, 6, 0);
tag4.Size = new Size(74, 27);
tag4.Size = new Size(67, 25);
tag4.TabIndex = 2;
tag4.Text = "Tag 2";
//
@@ -307,7 +307,7 @@ namespace Demo.Controls
tag3.Location = new Point(0, 0);
tag3.Name = "tag3";
tag3.Padding = new Padding(0, 0, 6, 0);
tag3.Size = new Size(74, 27);
tag3.Size = new Size(67, 25);
tag3.TabIndex = 1;
tag3.Text = "Tag 1";
//
@@ -317,7 +317,7 @@ namespace Demo.Controls
tag2.CloseIcon = true;
tag2.Location = new Point(72, 13);
tag2.Name = "tag2";
tag2.Size = new Size(140, 27);
tag2.Size = new Size(130, 25);
tag2.TabIndex = 2;
tag2.Text = "Prevent Default";
//
@@ -326,7 +326,7 @@ namespace Demo.Controls
tag1.AutoSizeMode = AntdUI.TAutoSize.Auto;
tag1.Location = new Point(13, 13);
tag1.Name = "tag1";
tag1.Size = new Size(55, 27);
tag1.Size = new Size(50, 25);
tag1.TabIndex = 1;
tag1.Text = "Tag 1";
//

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -258,10 +258,10 @@ namespace Demo.Controls
// tooltip1
//
tooltip1.Location = new Point(142, 3);
tooltip1.MaximumSize = new Size(335, 51);
tooltip1.MinimumSize = new Size(335, 51);
tooltip1.MaximumSize = new Size(323, 45);
tooltip1.MinimumSize = new Size(323, 45);
tooltip1.Name = "tooltip1";
tooltip1.Size = new Size(335, 51);
tooltip1.Size = new Size(323, 45);
tooltip1.TabIndex = 1;
tooltip1.Text = "Thanks for using antd. Have a nice day!";
//

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -90,7 +90,7 @@ namespace Demo.Controls
button1.IconSvg = "SearchOutlined";
button1.Location = new Point(3, 3);
button1.Name = "button1";
button1.Size = new Size(115, 47);
button1.Size = new Size(100, 46);
button1.TabIndex = 0;
button1.Text = "Button";
button1.Type = AntdUI.TTypeMini.Primary;
@@ -103,7 +103,7 @@ namespace Demo.Controls
button2.IconPosition = AntdUI.TAlignMini.Right;
button2.Location = new Point(124, 3);
button2.Name = "button2";
button2.Size = new Size(87, 47);
button2.Size = new Size(81, 46);
button2.TabIndex = 1;
button2.Text = "Button";
button2.Type = AntdUI.TTypeMini.Primary;
@@ -116,7 +116,7 @@ namespace Demo.Controls
button7.IconSvg = "SearchOutlined";
button7.Location = new Point(3, 56);
button7.Name = "button7";
button7.Size = new Size(115, 47);
button7.Size = new Size(100, 46);
button7.TabIndex = 6;
button7.Text = "Button";
button7.Click += Btn;
@@ -128,7 +128,7 @@ namespace Demo.Controls
button8.IconPosition = AntdUI.TAlignMini.Right;
button8.Location = new Point(124, 56);
button8.Name = "button8";
button8.Size = new Size(87, 47);
button8.Size = new Size(81, 46);
button8.TabIndex = 7;
button8.Text = "Button";
button8.Click += Btn;
@@ -144,7 +144,7 @@ namespace Demo.Controls
button3.LoadingWaveVertical = true;
button3.Location = new Point(245, 3);
button3.Name = "button3";
button3.Size = new Size(115, 75);
button3.Size = new Size(77, 69);
button3.TabIndex = 2;
button3.Text = "Button";
button3.Type = AntdUI.TTypeMini.Primary;
@@ -161,7 +161,7 @@ namespace Demo.Controls
button4.LoadingWaveVertical = true;
button4.Location = new Point(366, 3);
button4.Name = "button4";
button4.Size = new Size(115, 75);
button4.Size = new Size(77, 69);
button4.TabIndex = 3;
button4.Text = "Button";
button4.Type = AntdUI.TTypeMini.Primary;
@@ -178,7 +178,7 @@ namespace Demo.Controls
button5.LoadingWaveVertical = true;
button5.Location = new Point(487, 3);
button5.Name = "button5";
button5.Size = new Size(115, 75);
button5.Size = new Size(77, 69);
button5.TabIndex = 4;
button5.Text = "Button";
button5.Click += Btn;
@@ -194,7 +194,7 @@ namespace Demo.Controls
button6.LoadingWaveVertical = true;
button6.Location = new Point(608, 3);
button6.Name = "button6";
button6.Size = new Size(115, 75);
button6.Size = new Size(77, 69);
button6.TabIndex = 5;
button6.Text = "Button";
button6.Click += Btn;

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -335,7 +335,6 @@ namespace Demo.Controls
colorPicker.ShowText = true;
colorPicker.Size = new System.Drawing.Size(125, 46);
colorPicker.TabIndex = 3;
colorPicker.Value = System.Drawing.Color.FromArgb(22, 119, 255);
colorPicker.ValueChanged += colorPicker_ValueChanged;
//
// Watermark

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

View File

@@ -26,6 +26,21 @@ namespace Demo
case "NoData":
return "No data";
case "Mon":
return "Mon";
case "Tue":
return "Tue";
case "Wed":
return "Wed";
case "Thu":
return "Thu";
case "Fri":
return "Fri";
case "Sat":
return "Sat";
case "Sun":
return "Sun";
case "ItemsPerPage":
return "Per/Page";
@@ -316,6 +331,8 @@ namespace Demo
return "Combination";
case "Input.Code":
return "Please enter verification code";
case "Input.Code2":
return "Code: ";
case "Input.Tao":
return "Tao, I like it";
case "Input.input2":

View File

@@ -153,7 +153,7 @@ namespace Demo
colorTheme.Padding = new Padding(5);
colorTheme.Size = new Size(40, 40);
colorTheme.TabIndex = 8;
colorTheme.Value = Color.FromArgb(22, 119, 255);
colorTheme.ValueChanged += colorTheme_ValueChanged;
//
// Overview
//

View File

@@ -19,7 +19,6 @@ namespace Demo
InitializeComponent();
windowBar.Text += " " + windowBar.ProductVersion;
TopMost = top;
colorTheme.ValueChanged += ColorTheme_ValueChanged;
var globals = new AntdUI.SelectItem[] {
new AntdUI.SelectItem("中文","zh-CN"),
new AntdUI.SelectItem("English","en-US")
@@ -333,23 +332,16 @@ namespace Demo
private void btn_mode_Click(object sender, EventArgs e)
{
if (setcolor)
{
var color = AntdUI.Style.Db.Primary;
AntdUI.Config.IsDark = !AntdUI.Config.IsDark;
Dark = AntdUI.Config.IsDark;
AntdUI.Style.SetPrimary(color);
}
else
{
AntdUI.Config.IsDark = !AntdUI.Config.IsDark;
Dark = AntdUI.Config.IsDark;
}
btn_mode.Toggle = Dark;
btn_mode.Toggle = AntdUI.Config.IsDark = !AntdUI.Config.IsDark;
OnSizeChanged(e);
}
private void colorTheme_ValueChanged(object sender, AntdUI.ColorEventArgs e)
{
AntdUI.Style.SetPrimary(e.Value);
Refresh();
}
private void btn_setting_Click(object sender, EventArgs e)
{
var setting = new Setting(this);
@@ -451,14 +443,6 @@ namespace Demo
}
}
bool setcolor = false;
private void ColorTheme_ValueChanged(object sender, AntdUI.ColorEventArgs e)
{
setcolor = true;
AntdUI.Style.SetPrimary(e.Value);
Refresh();
}
#region
private void txt_search_PrefixClick(object sender, MouseEventArgs e) => LoadSearchList();

View File

@@ -13,7 +13,7 @@
<Description>👚 基于 Ant Design 设计语言的 Winform 界面库</Description>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<Version>2.2.13</Version>
<Version>2.2.14</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<LangVersion>9.0</LangVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>

View File

@@ -16,7 +16,7 @@ namespace GraphemeSplitterTest
SvgDb.Emoji = FluentFlat.Emoji;
Test("🧑🏿‍🎨⚓");
TestEmoji("🧑🏿‍🦽","🧑‍🦽","🧑🏻‍🦽","🧑🏽‍🦽","🧑🏾‍🦽","🧑🏼‍🦽","🧑🏿‍🦽‍➡️","🧑‍🦽‍➡️","🧑🏻‍🦽‍➡️","🧑🏽‍🦽‍➡️","🧑🏾‍🦽‍➡️","🧑🏼‍🦽‍➡️","🧑🏿‍🦼","🧑‍🦼","🧑🏻‍🦼","🧑🏽‍🦼","🧑🏾‍🦼","🧑🏼‍🦼","🧑🏿‍🦼‍➡️","🧑‍🦼‍➡️","🧑🏻‍🦼‍➡️","🧑🏽‍🦼‍➡️","🧑🏾‍🦼‍➡️","🧑🏼‍🦼‍➡️");
TestEmoji("🧑🏿‍🦽", "🧑‍🦽", "🧑🏻‍🦽", "🧑🏽‍🦽", "🧑🏾‍🦽", "🧑🏼‍🦽", "🧑🏿‍🦽‍➡️", "🧑‍🦽‍➡️", "🧑🏻‍🦽‍➡️", "🧑🏽‍🦽‍➡️", "🧑🏾‍🦽‍➡️", "🧑🏼‍🦽‍➡️", "🧑🏿‍🦼", "🧑‍🦼", "🧑🏻‍🦼", "🧑🏽‍🦼", "🧑🏾‍🦼", "🧑🏼‍🦼", "🧑🏿‍🦼‍➡️", "🧑‍🦼‍➡️", "🧑🏻‍🦼‍➡️", "🧑🏽‍🦼‍➡️", "🧑🏾‍🦼‍➡️", "🧑🏼‍🦼‍➡️");
var emojis = new List<string>(SvgDb.Emoji.Count);
foreach (var it in SvgDb.Emoji) emojis.Add(it.Key);