public sealed record DesktopStatusIconActivation : IEquatable<DesktopStatusIconActivation> A user action on a status icon. Treat activation as untrusted input at the application boundary.
Parameters
KindHow the user activated the icon.
CommandIdThe
DesktopMenuItem.CommandIdof the chosen item forDesktopStatusIconActivationKind.MenuItem; otherwisenull.
Constructors
DesktopStatusIconActivation
public DesktopStatusIconActivation(DesktopStatusIconActivationKind Kind, string? CommandId = null) A user action on a status icon. Treat activation as untrusted input at the application boundary.
Parameters
KindHow the user activated the icon.
CommandIdThe
DesktopMenuItem.CommandIdof the chosen item forDesktopStatusIconActivationKind.MenuItem; otherwisenull.
Properties
CommandId
public string? CommandId { get; init; } The DesktopMenuItem.CommandId of the chosen item for DesktopStatusIconActivationKind.MenuItem; otherwise null.
CommandParameter
public string? CommandParameter { get; init; } Gets the DesktopMenuItem.CommandParameter of the chosen item for DesktopStatusIconActivationKind.MenuItem; otherwise null.
Remarks
Untrusted input like DesktopStatusIconActivation.CommandId: check it against the application's own state.
PlatformContext
public DesktopActivationContext? PlatformContext { get; init; } Short-lived desktop activation data for raising a window. Dispatch promptly; do not persist it.