ToastNotificationManagerCompat Set Application Title #4493
Replies: 2 comments 5 replies
-
@andrewleader any insights here on this question? |
Beta Was this translation helpful? Give feedback.
-
Hi @Daniellled, thanks for asking this, and this is a timely question as the platform team is working on adding notification APIs to Windows App SDK (which would replace these APIs) and this is one of the topics we're exploring! Will your app have a Start menu shortcut? If it has a Start menu shortcut, the Toast compat library should use the shortcut's display name, so hopefully that would support localization... let me know if it doesn't. If your app doesn't have a shortcut, then I think there currently isn't a solution in the existing Toolkit for you, but as I mentioned the notification team is actively building the new notification APIs in Windows App SDK which will replace this functionality, so now is the perfect time to ensure your scenario is supported. The goal in the APIs is to ensure that you don't have to do anything special for notification display assets, the display assets your app already provides for taskbar and Start just works (we don't want to invent a completely new and separate way of specifying your assets just for notifications). The team is currently looking into AppUserModelIds, do you think you'd be able to set the process AUMID and then set the RelaunchDisplayNameResource? I've briefly looked into those docs but it sounds like the Relaunch properties are only for when you have multiple windows with separate AUMIDs, any chance you know whether you can set the DisplayName for the single main process AUMID without a shortcut? |
Beta Was this translation helpful? Give feedback.
-
I am creating a WPF application that uses ToastNotificationManagerCompat to display Toast Notifications. I have noticed that the title that is displayed to the user appears to correspond to the Assembly Title contained within my AssemblyInfo.cs. Is it possible to change that value and even localize it?
For example in the attached screenshot, I am referring to the text "Docker Desktop"
If I was not using ToastNotificationManagerCompat I would need to setup AppUserModelIDs https://docs.microsoft.com/en-us/windows/win32/shell/appids. What options do I have available as a Non-MSIX WPF application?
Beta Was this translation helpful? Give feedback.
All reactions