ToastNotification.SuppressPopup Property

Definition

Gets or sets whether a toast's pop-up UI is displayed on the user's screen.

public:
 property bool SuppressPopup { bool get(); void set(bool value); };
bool SuppressPopup();

void SuppressPopup(bool value);
public bool SuppressPopup { get; set; }
var boolean = toastNotification.suppressPopup;
toastNotification.suppressPopup = boolean;
Public Property SuppressPopup As Boolean

Property Value

Boolean

bool

Set to true to suppress the popup message; otherwise, false. The default value is false, meaning the toast's pop-up message will be shown. Setting this property to true places the toast notification silently into the action center. This enables your app to communicate with the user without interrupting them.

Remarks

Notes for previous versions

Windows 8.x Do not set this property to true in a toast sent to a Windows 8.x device. Doing so will cause a compiler error or a dropped notification.

Applies to

See also