From 94df9ca5e559445fab8ef1e322e1413ac9d11e59 Mon Sep 17 00:00:00 2001 From: QuinlanvanNunen <71747947+QuinlanvanNunen@users.noreply.github.com> Date: Thu, 2 Sep 2021 09:40:48 +1000 Subject: [PATCH] Added ImageUri as an option for Snooze Added option for ImageUri when creating a Snooze button [Microsoft.Toolkit.Uwp.Notifications.ToastButtonSnooze]::new() matching a normal button --- BurntToast/Public/New-BTButton.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BurntToast/Public/New-BTButton.ps1 b/BurntToast/Public/New-BTButton.ps1 index b888f6a..f414eb1 100644 --- a/BurntToast/Public/New-BTButton.ps1 +++ b/BurntToast/Public/New-BTButton.ps1 @@ -91,6 +91,7 @@ # Specifies an image icon to display on the button. [Parameter(ParameterSetName = 'Button')] + [Parameter(ParameterSetName = 'Snooze')] [string] $ImageUri, # Specifies the ID of a relevant Toast control. @@ -129,6 +130,10 @@ if ($Id) { $Button.SelectionBoxId = $Id } + + if ($ImageUri) { + $Button.ImageUri = $ImageUri + } } 'Dismiss' { if ($Content) {