I want my UWP app to provide the user with the opportunity to Pin/Unpin the app to the Start Screen by pressing a button.
I have managed to pin the app using this code:
AppListEntry entry = (await Package.Current.GetAppListEntriesAsync())[0];
bool isPinned = await StartScreenManager.GetDefault().RequestAddAppListEntryAsync(entry);
However, I could not find anywhere a way to unpin the app. Is the unpin functionality available for secondary tiles only?