Daniel_97
Daniel_97

Reputation: 901

UWP - Change App Icon dynamically

I recently received a real headache problem for UWP apps. Basically I would like to change the main Icon of my app depending on an action. Let's say I would like to change the App Icon if a certain user logs into my app so that he does not see default App Icon after closing the app.

I found different links which refer to work on tiles, which works perfectly fine. But I did not come up with a solution to change the App's Icon.

Is there a way like in iOS to use AlternateIcons or in Android to just call an Alias?

Upvotes: 1

Views: 816

Answers (1)

Martin Zikmund
Martin Zikmund

Reputation: 39072

Tiles are technically the icons in the UWP world. You can update the live tiles as you desire with notifications and they can provide richer visual surface than classic icons.

For the App List and Taskbar icons however, those are just static and you cannot change them at runtime. They come from the Package.appxmanifest Visual Assets section, so you have to define them ahead of time.

You however use Badge notifications to display simple info next to the app icon in the Task bar as well as on the main app tile.

Upvotes: 5

Related Questions