2
0
Files
controlmymonitormanagement/DellMonitorControl/MainWindow.xaml.cs

23 lines
505 B
C#
Raw Normal View History

2023-07-05 20:45:59 +08:00
using System.Threading.Tasks;
using System.Windows;
2023-07-02 22:17:57 +08:00
namespace DellMonitorControl;
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
2023-07-05 20:45:59 +08:00
this.Hide();
taskbar.TrayPopupOpen += async (s, e) => await Taskbar_TrayPopupOpen(s, e);
2023-07-03 01:51:09 +08:00
}
2023-07-05 20:45:59 +08:00
private async Task Taskbar_TrayPopupOpen(object sender, RoutedEventArgs e)
2023-07-03 01:51:09 +08:00
{
2023-07-05 20:45:59 +08:00
await comtrolPanel.Refresh();
2023-07-02 22:17:57 +08:00
}
}