i use the Microsoft.Toolkit.Uwp.Notifications for handling Toast Notifications.
With the methods .AddAppLogoOverride and .AddHeroImage i can include images.
This methods are expecting the image path as URI.
Using a file path from the file system is working fine.
But i want to use images (.PNG files) that i store as Resources in my project so that i don't have to care that the users have to install the image files on their file system.
Can anyone please tell me the correct syntax for an Image which is stored as resource in my project? For example the File Name is "LDNotifyHero.png". Resource type is Image. Build Action is "Resource".
Thank you and best regards
What I have tried:
tcb.AddAppLogoOverride(new Uri("ms-appx:///RebootNotifier/Resources/LDNotifyIcon.png"), ToastGenericAppLogoCrop.Circle);
The first line works (...PROGRAM_PATH....) - as mentioned i used the file path in the file system.
But the following lines do not work.