UAC shield on icon stops the icon scaling in folder view
After many days of searching, I couldn’t find the answer anywhere.
I’ve created a Windows Forms app in Visual Studio 2022. I have an icon that scales correctly when I zoom in folder view.
Now, my app needs to run with the administrator privileges. To do that, I changed the required permissions in the manifest from asInvoker to requireAdministrator. After this, the app icon contains the UAC shield badge, which is expected and desired. However, this also prevents the icon to scale correctly – it’s always the smallest size, and when the view is increased in the folder, the icon is just a small icon surrounded by empty space in the tile.