WPF ToastNotification and Images #4556
Unanswered
Daniellled
asked this question in
Questions & Help
Replies: 1 comment 1 reply
-
Looking at this link https://www.codeproject.com/Questions/5325244/How-can-I-specify-an-URI-as-resource-image-for-toa it appears the only option may be to use the full file system path. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a WPF application and I am using the Microsoft.Toolkit.Uwp.Notifications version 7.1.2. I am wondering how I use things like hero images?
I see at https://docs.microsoft.com/en-us/windows/apps/design/shell/tiles-and-notifications/send-local-toast?tabs=uwp#adding-images that since I am a WPF app the Http images will not work.
I am able to get the image to display if I provide a full path for example c:\myfolder\myimage.jpg.
I am wondering what other options I have available to my WPF application?
Can I use a WPF pack uri? For example pack://application:,,,/MyApp;component/Resources/applications.png
Can I have my application download to %appdata% which equates to C:\Users\myUserName\AppData\Roaming and reference the image via ms-appdata:///roaming/applications.png
Beta Was this translation helpful? Give feedback.
All reactions