I downloaded a nuget called TaskbarNotification
, which contains a class called TaskbarIcon
.
The next code throws an exception and I don't know how to fix it.
The exception is telling me that the URI is not in the right format.
However, everything works in my app if I do not set the IconSource
property to anything.
var mySource = new BitmapImage(new Uri(@"..\..\Icons\thumbs-up.jpg", UriKind.Relative));
var icon = new TaskbarIcon();
icon.IconSource = mySource;
Can you please help me?