A: 添加任务栏窗口界面 (TaskbarWindow.xaml) 以显示实时网络流量;新增工具类 TaskbarHelper 获取任务栏位置

A: README 更新,详述功能清单及说明
A: 添加图片资源(img.png, img_1.png, img_2.png, img_3.png)
D: 移除 MainWindow.xaml.cs 中无用引用
This commit is contained in:
jimmy committed 2025-05-11 15:49:11 +08:00
1 parent 0feeb00fae
commit 42464d9408
9 files changed
+100 -11

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
using System.Runtime.InteropServices;
using System.Windows;
using Shell.Utils;
namespace Shell.Views;
public partial class TaskbarWindow : Window
{
public TaskbarWindow()
{
InitializeComponent();
// 获取任务栏位置
var rect = TaskbarHelper.GetTaskbarPosition();
// 将窗口贴在任务栏右下角
this.Left = rect.right - this.Width;
this.Top = rect.bottom - this.Height;
}
}