Files
NetVizor/Shell/Views/TaskbarWindow.xaml.cs
T
jimmy 42464d9408 A: 添加任务栏窗口界面 (TaskbarWindow.xaml) 以显示实时网络流量;新增工具类 TaskbarHelper 获取任务栏位置
A: README 更新,详述功能清单及说明
A: 添加图片资源(img.png, img_1.png, img_2.png, img_3.png)
D: 移除 MainWindow.xaml.cs 中无用引用
2025-05-11 15:49:11 +08:00

21 lines
452 B
C#

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;
}
}