🦄 Beautiful AntdUI

pull/22/head v1.7.3
Tom 2 months ago
parent 1373c3d706
commit f823cb2780

@ -123,28 +123,4 @@ Ant Design for WinForms, reimagines desktop app aesthetics with modern frontend
![ChatUI](doc/screenshot/ChatUI.gif)
#### Control
| **Button** | **Badge** |
| :--: | :--: |
| ![Button](doc/screenshot/Button.gif) | ![Badge](doc/screenshot/Badge.gif) |
| **Carousel** | **Input** |
| ![Carousel](doc/screenshot/Carousel.gif) | ![Input](doc/screenshot/Input.gif) |
| **Progress** | **Avatar** |
| ![Progress](doc/screenshot/Progress.gif) | ![Avatar](doc/screenshot/Avatar.gif) |
| **Checkbox** | **Radio** |
| ![Checkbox](doc/screenshot/Checkbox.gif) | ![Radio](doc/screenshot/Radio.gif) |
| **Tooltip** | **Panel** |
| ![Tooltip](doc/screenshot/Tooltip.gif) | ![Panel](doc/screenshot/Panel.gif) |
| **Tabs** | **Alert** |
| ![Tabs](doc/screenshot/Tabs.gif) | ![Alert](doc/screenshot/Alert.gif) |
| **Segmented** | **Menu** |
| ![Segmented](doc/screenshot/Segmented.gif) | ![Menu](doc/screenshot/Menu.gif) |
| **Divider** | **Slider** |
| ![Divider](doc/screenshot/Divider.gif) | ![Slider](doc/screenshot/Slider.gif) |
| **Message** | **Notification** |
| ![Message](doc/screenshot/Message.gif) | ![Notification](doc/screenshot/Notification.gif) |
| **Switch** | **Table** |
| ![Switch](doc/screenshot/Switch.gif) | ![Table](doc/screenshot/Table.gif) |
🦦

@ -125,30 +125,6 @@
![ChatUI](doc/screenshot/ChatUI.gif)
#### 控件
| **Button** 按钮 | **Badge** 徽标数 |
| :--: | :--: |
| ![Button](doc/screenshot/Button.gif) | ![Badge](doc/screenshot/Badge.gif) |
| **Carousel** 走马灯 | **Input** 输入框 |
| ![Carousel](doc/screenshot/Carousel.gif) | ![Input](doc/screenshot/Input.gif) |
| **Progress** 进度条 | **Avatar** 头像 |
| ![Progress](doc/screenshot/Progress.gif) | ![Avatar](doc/screenshot/Avatar.gif) |
| **Checkbox** 多选框 | **Radio** 单选框 |
| ![Checkbox](doc/screenshot/Checkbox.gif) | ![Radio](doc/screenshot/Radio.gif) |
| **Tooltip** 提示 | **Panel** 面板 |
| ![Tooltip](doc/screenshot/Tooltip.gif) | ![Panel](doc/screenshot/Panel.gif) |
| **Tabs** 标签页 | **Alert** 警告提示 |
| ![Tabs](doc/screenshot/Tabs.gif) | ![Alert](doc/screenshot/Alert.gif) |
| **Segmented** 分段控制器 | **Menu** 导航菜单 |
| ![Segmented](doc/screenshot/Segmented.gif) | ![Menu](doc/screenshot/Menu.gif) |
| **Divider** 分割线 | **Slider** 滑动条 |
| ![Divider](doc/screenshot/Divider.gif) | ![Slider](doc/screenshot/Slider.gif) |
| **Message** 全局提示 | **Notification** 通知提醒框 |
| ![Message](doc/screenshot/Message.gif) | ![Notification](doc/screenshot/Notification.gif) |
| **Switch** 开关 | **Table** 表格 |
| ![Switch](doc/screenshot/Switch.gif) | ![Table](doc/screenshot/Table.gif) |
## 📢 特别声明

Binary file not shown.

Before

Width:  |  Height:  |  Size: 587 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 377 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 386 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 913 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 25 KiB

@ -24,7 +24,7 @@ PM> `Install-Package AntdUI`
> 打开AntdUI的码云地址[https://gitee.com/antdui/AntdUI](https://gitee.com/antdui/AntdUI)
![downcode](Img/DownCode.png)
解压后双击打开 `AntdUI.sln` 解决方案,将 `examples/Overview` 项目设为启动项目,`F5` 启动
解压后双击打开 `AntdUI.sln` 解决方案,将 `examples/Demo` 项目设为启动项目,`F5` 启动
#### 源码下载无法编译?

@ -84,29 +84,19 @@ namespace AntdUI
{
handle = new HWND(Handle);
base.OnHandleCreated(e);
if (FormBorderStyle == FormBorderStyle.None)
SetTheme();
DisableProcessWindowsGhosting();
if (FormBorderStyle != FormBorderStyle.None && WindowState != FormWindowState.Maximized)
{
SetTheme();
DisableProcessWindowsGhosting();
HandMessage();
DwmArea();
}
else
{
SetTheme();
DisableProcessWindowsGhosting();
if (WindowState != FormWindowState.Maximized)
{
Size max = MaximumSize, min = MinimumSize;
sizeInit = ClientSize;
MaximumSize = MinimumSize = ClientSize = sizeInit.Value;
ClientSize = sizeInit.Value;
MinimumSize = min;
MaximumSize = max;
}
HandMessage();
DwmArea();
Size max = MaximumSize, min = MinimumSize;
sizeInit = ClientSize;
MaximumSize = MinimumSize = ClientSize = sizeInit.Value;
ClientSize = sizeInit.Value;
MinimumSize = min;
MaximumSize = max;
}
HandMessage();
DwmArea();
}
protected override void OnLoad(EventArgs e)
@ -125,8 +115,7 @@ namespace AntdUI
protected override void WndProc(ref System.Windows.Forms.Message m)
{
var msg = (WindowMessage)m.Msg;
switch (msg)
switch ((WindowMessage)m.Msg)
{
case WindowMessage.WM_ACTIVATE:
DwmArea();
@ -140,12 +129,20 @@ namespace AntdUI
case WindowMessage.WM_SIZE:
WmSize(ref m);
break;
case WindowMessage.WM_NCHITTEST:
m.Result = TRUE;
break;
case WindowMessage.WM_ACTIVATEAPP:
InvalidateNonclient();
break;
default:
if (WmGhostingHandler(m)) return;
break;
}
if (WmGhostingHandler(m)) return;
base.WndProc(ref m);
}
static IntPtr FALSE = new IntPtr(0);
static IntPtr TRUE = new IntPtr(1), FALSE = new IntPtr(0);
bool WmGhostingHandler(System.Windows.Forms.Message m)
{
switch (m.Msg)
@ -464,7 +461,7 @@ namespace AntdUI
}
else
{
m.Result = new IntPtr(1);
m.Result = TRUE;
return true;
}
}

Loading…
Cancel
Save