ToastContentBuilder.AddAppLogoOverride Method

Definition

Override the app logo with custom image of choice that will be displayed on the toast.

public Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder AddAppLogoOverride (Uri uri, Microsoft.Toolkit.Uwp.Notifications.ToastGenericAppLogoCrop? hintCrop = default, string alternateText = default, bool? addImageQuery = default);
member this.AddAppLogoOverride : Uri * Nullable<Microsoft.Toolkit.Uwp.Notifications.ToastGenericAppLogoCrop> * string * Nullable<bool> -> Microsoft.Toolkit.Uwp.Notifications.ToastContentBuilder
Public Function AddAppLogoOverride (uri As Uri, Optional hintCrop As Nullable(Of ToastGenericAppLogoCrop) = Nothing, Optional alternateText As String = Nothing, Optional addImageQuery As Nullable(Of Boolean) = Nothing) As ToastContentBuilder

Parameters

uri
Uri

The URI of the image. Can be from your application package, application data, or the internet. Internet images must be less than 200 KB in size.

hintCrop
Nullable<ToastGenericAppLogoCrop>

Specify how the image should be cropped.

alternateText
String

A description of the image, for users of assistive technologies.

addImageQuery
Nullable<Boolean>

A value whether Windows is allowed to append a query string to the image URI supplied in the Tile notification.

Returns

The current instance of ToastContentBuilder

Applies to