在 Windows 操作系统中,任务栏底部右侧的区域被称为 "System Tray" 或者 "Notification Area"
Notification Area - Win32 apps | Microsoft Learn
The notification area provides notifications and status. Well-designed programs use the notification area appropriately, without being annoying or distracting.
The notification area is a portion of the taskbar that provides a temporary source for notifications and status. It can also be used to display icons for system and program features that have no presence on the desktop.
Items in the notification area are referred to as notification area icons, or simply icons if the context of the notification area is already clearly established.
The notification area.
To give users control of their desktop in Windows 7, not all notification area icons are displayed by default. Rather, icons are displayed in the notification area overflow unless promoted to the notification area by the user.
The notification area overflow.
Note: Guidelines related to the taskbar, notifications , and balloons are presented in separate articles.
dfsfhttps://answers.microsoft.com/en-us/windows/forum/all/taskbar-notification-area-on-multiple-monitors-at/0b947e2e-710b-4949-bb38-629813ca48cb
Taskbar 'Notification Area' on multiple monitors at the same time
Is there any way to do it? To be clear, I know I can move the Taskbar with the Notification Area over to a different monitor, the problem with that is it disappears from the primary monitor in that case. I want it on multiple monitors at the same time, any way to do this?
自定义任务栏通知区域 - Microsoft 支持
https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/design/shell/tiles-and-notifications/notification-listener.md
通知区域位于任务栏右侧。 它包含你可能经常选择或按下的图标:电池、Wlan、音量、时钟和日历以及操作中心。 它提供有关传入电子邮件、更新和网络连接性等的状态和通知。
自定义看到
可以更改通知区域中显示哪些图标和通知,甚至隐藏某些图标和通知。
查看隐藏的图标
点击或单击通知区域旁的“显示隐藏的图标”箭头 。
更改图标和通知的显示方式
-
长按或右键单击任务栏上的任何空白区域,然后点击或单击"任务栏设置"。
-
在 "通知区域"下:
-
要自定义任务栏,请选择"选择在任务栏上显示哪些图标",然后选择不想在任务栏上看到的特定图标-我们将这些图标移动到溢出区域,以便它们看不到。
-
若要打开或关闭系统图标,请选择"打开或关闭系统图标",然后选择"打开"或"关闭"以设置显示哪些图标。
-
在任务栏通知区域中隐藏图标
-
在任务栏上的通知区域中,选择或按要隐藏的图标并开始拖动。 这会打开溢出区域。
-
将图标拖动到溢出区域中的想要位置。
Notification listener: Access all notifications
The notification listener provides access to a user's notifications. Smartwatches and other wearables can use the notification listener to send the phone's notifications to the wearable device. Home automation apps can use notification listener to perform specific actions when notifications are received, such as making the lights blink when you receive a call.
https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications.management.usernotificationlistener?view=winrt-22621Reads and manages a user's notifications.https://learn.microsoft.com/en-us/uwp/api/windows.ui.notifications.management.usernotificationlistener?view=winrt-22621
UserNotificationListener Class
- Reference
Feedback
Definition
Namespace:
Windows.UI.Notifications.Management
Edit
Reads and manages a user's notifications.
C#Copy
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.MTA)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UserNotificationListener
Inheritance
ObjectUserNotificationListener
Attributes
ContractVersionAttribute ThreadingAttribute MarshalingBehaviorAttribute
Windows requirements
Expand table
Device family | Windows 10 Anniversary Edition (introduced in 10.0.14393.0) |
API contract | Windows.Foundation.UniversalApiContract (introduced in v3.0) |
Remarks
UserNotificationListener requires explicit user permission to be granted before it may be used, so before attempting to access notifications be sure you call RequestAccessAsync from a UI-thread.
Properties
Expand table
Current | Gets a UserNotificationListener for the current user. |
Methods
Expand table
ClearNotifications() | Clears the notification. |
GetAccessStatus() | Gets a value that indicates whether the UserNotificationListener has access to the user's notifications. |
GetNotification(UInt32) | Retrieves the specified notification. |
GetNotificationsAsync(NotificationKinds) | Asynchronously retrieves notifications that match the specified notification kind. |
RemoveNotification(UInt32) | Removes the specified notification. |
RequestAccessAsync() | Requests the user's permission to manage notifications. |
Events
Expand table
NotificationChanged | Occurs when a notification is added or removed. |
Notifications sample - Code Samples | Microsoft LearnShows how to use the various Toast and LiveTile related APIs, such as Notification, Popup, and the Windows.UI.StartScreen namespace.https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/notifications/
GitHub - microsoft/WindowsAppSDK-Samples: Feature samples for the Windows App SDKFeature samples for the Windows App SDK. Contribute to microsoft/WindowsAppSDK-Samples development by creating an account on GitHub.https://github.com/microsoft/WindowsAppSDK-Samples