You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Add an button to the toast that will be display to the right of the input text box, achieving a quick reply scenario.
124
+
/// </summary>
125
+
/// <param name="textBoxId">ID of an existing <see cref="ToastTextBox"/> in order to have this button display to the right of the input, achieving a quick reply scenario.</param>
126
+
/// <param name="content">Text to display on the button.</param>
127
+
/// <param name="activationType">Type of activation this button will use when clicked. Defaults to Foreground.</param>
128
+
/// <param name="arguments">App-defined arguments that the app can later retrieve once it is activated when the user clicks the button.</param>
129
+
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
/// Gets internal instance of <see cref="ToastContent"/>. This is equivalent to the call to <see cref="ToastContentBuilder.GetToastContent"/>.
16
23
/// </summary>
@@ -44,6 +51,22 @@ public ToastContentBuilder AddCustomTimeStamp(
44
51
returnthis;
45
52
}
46
53
54
+
/// <summary>
55
+
/// Add a header to a toast.
56
+
/// </summary>
57
+
/// <param name="id">A developer-created identifier that uniquely identifies this header. If two notifications have the same header id, they will be displayed underneath the same header in Action Center.</param>
58
+
/// <param name="title">A title for the header.</param>
59
+
/// <param name="arguments">Developer-defined arguments that are returned to the app when the user clicks this header.</param>
60
+
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
61
+
/// <remarks>More info about toast header: https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/toast-headers </remarks>
returnAddArgumentHelper(key,value?"1":"0");// Encode as 1 or 0 to save string space
164
+
}
165
+
166
+
#if !WINRT
167
+
/// <summary>
168
+
/// Adds a key/value to the activation arguments that will be returned when the toast notification or its buttons are clicked.
169
+
/// </summary>
170
+
/// <param name="key">The key for this value.</param>
171
+
/// <param name="value">The value itself. Note that the enums are stored using their numeric value, so be aware that changing your enum number values might break existing activation of toasts currently in Action Center.</param>
172
+
/// <returns>The current instance of <see cref="ToastContentBuilder"/></returns>
/// Add info that can be used by the application when the app was activated/launched by the toast.
263
+
/// Instead of this method, for foreground/background activation, it is suggested to use <see cref="AddArgument(string, string)"/> and optionally <see cref="SetBackgroundActivation"/>. For protocol activation, you should use <see cref="SetProtocolActivation(Uri)"/>. Add info that can be used by the application when the app was activated/launched by the toast.
101
264
/// </summary>
102
265
/// <param name="launchArgs">Custom app-defined launch arguments to be passed along on toast activation</param>
103
266
/// <param name="activationType">Set the activation type that will be used when the user click on this toast</param>
@@ -106,6 +269,7 @@ public ToastContentBuilder AddToastActivationInfo(string launchArgs, ToastActiva
0 commit comments