A: README 更新,详述功能清单及说明 A: 添加图片资源(img.png, img_1.png, img_2.png, img_3.png) D: 移除 MainWindow.xaml.cs 中无用引用
21 lines
452 B
C#
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;
|
|
}
|
|
|
|
}
|