From 41b70d03610c1f9c64ab7fad0a9aa2ef8c8fa12b Mon Sep 17 00:00:00 2001 From: HavenDV Date: Thu, 2 May 2024 01:44:12 +0400 Subject: [PATCH] feat: TaskbarIcon.ShowContextMenu is public now. --- src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.WinRT.cs | 2 +- src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.Wpf.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.WinRT.cs b/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.WinRT.cs index 64b7d92..e0fbdd3 100644 --- a/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.WinRT.cs +++ b/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.WinRT.cs @@ -10,7 +10,7 @@ public partial class TaskbarIcon /// Displays the ContextMenu/ContextFlyout if it was set. /// [SupportedOSPlatform("windows5.1.2600")] - private void ShowContextMenu(System.Drawing.Point cursorPosition) + public void ShowContextMenu(System.Drawing.Point cursorPosition) { if (IsDisposed) { diff --git a/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.Wpf.cs b/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.Wpf.cs index 5dca834..3f1b58e 100644 --- a/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.Wpf.cs +++ b/src/libs/H.NotifyIcon.Shared/TaskbarIcon.ContextMenu.Wpf.cs @@ -7,7 +7,7 @@ public partial class TaskbarIcon /// /// Displays the ContextMenu/ContextFlyout if it was set. /// - private void ShowContextMenu(System.Drawing.Point cursorPosition) + public void ShowContextMenu(System.Drawing.Point cursorPosition) { if (IsDisposed) {