mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-12 19:24:55 +08:00
25 lines
505 B
C#
25 lines
505 B
C#
using Microsoft.UI.Xaml;
|
|
using System;
|
|
|
|
namespace BetterLyrics.WinUI3.Hooks
|
|
{
|
|
public class TaskbarHook
|
|
{
|
|
private readonly DispatcherTimer _timer;
|
|
|
|
public Action<EventArgs> OnTaskbarBoundsChanged;
|
|
|
|
public TaskbarHook()
|
|
{
|
|
_timer = new DispatcherTimer();
|
|
_timer.Interval = TimeSpan.FromMilliseconds(50);
|
|
_timer.Tick += Timer_Tick;
|
|
}
|
|
|
|
private void Timer_Tick(object? sender, object e)
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|