Windows 10 uwp icons

The Windows 10 Insider Preview build 18282 for the first time revealed a beautiful light theme of the Windows Shell (Start menu, Taskbar and Action Center). Many stock apps have already been updated to support this color scheme so in this article, we will check out how to add support for light theme task bar icons in our UWP apps as well!

Example: Microsoft Store

Let’s take the Microsoft Store app as an example. In its Assets folder we find the following:

Microsoft Store Assets

I have previously written about the different types of app icons supported in UWP and with light theme in Windows shell there is a new addition to the list — the lightunplated suffix.

  • targetsize-_altform-lightunplated

Light theme taskbar icon in action

The default UWP Blank app template already creates an altform-unplated icon for display in the taskbar.

However, the system will use the plated version when the user switches to light theme:

So if we want to have an icon with transparent background even with the light theme, we must provide a second png icon with the lightunplated suffix. Ideally, this version should be adapted to look well on light background, so using dark colors is recommended. I have used the following icon (thank you, Icons8!):

And named it Square44x44Logo.targetsize-24_altform-lightunplated.png. This is enough to get the icon picked up by the system and automatically used when light theme is set:

Sizes

In addition to providing the base size for the taskbar icon, you can also provide more sizes for different screen densities. As I described in my older article, Visual Studio shows sizes 256, 48, 24 and 16, but you can freely add even more as you see fit.

Compatibility

As mentioned, light-theme for Windows Shell was first introduced in Insider Preview build 18282, but you are free to add the lightunplated icons to your app running on any version of Windows 10 and they will just be gracefully ignored.

Source code

The example source code for this article is available on my GitHub.

Summary

The light-themed Windows Shell was long awaited and it is awesome to see it finally making its appearance in latest preview builds. Adding support for the light-theme taskbar icons is quick and easy so including them in your app is a no-brainer :-) .

Skip to content



Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

uwp-icons

A CSS library to use the Universal Windows Platform icons on the web.

NOTE: This library does not currently distribute the «Segoe MDL2 Assets» font, and as such, these icons will only display on Windows 10.

Sponsor this project

     Icons and Special Characters in UWP     

Icons are an influential part of the UI and UX of an app. They make applications beautiful and enhance the user experiences. For instance, using the plus icon (+) instead of typing «add new» in a button. It makes applications more usable for a wide range of people who do not know a specific language.

Icons are an influential part of the UI and UX of an app. They make applications beautiful and enhance the user experiences. For instance, using the plus icon (+) instead of typing «add new» in a button. It makes applications more usable for a wide range of people who do not know a specific language.

Segue MDL2 is the default icon font of Windows that can be used to show icons in windows applications. You can see the full icons of this font here. You can also see some of its icons in the following list:

Character Map is a useful application for finding icons and special characters. You can use this link to download it from Microsoft Store. In order to install it, you need to have Windows 10 Creator Updates (Build 15063). If you use an older build number of windows, you can use the other apps on the Windows Store.

If you run the Character Map application, you can see all installed fonts on your machine on the left side of the app. On the right side of the app, you can copy the code of icon or symbol and use it in your app. You see a screenshot of the Character Map application in the following:

In order to use icons in your app, you can use three different elements on XAML. The first one is the FontIcon. The second element is the SymbolIcon, and the last one is the TextBlock. Let’s start showing how to use it in the XAML and code-behind. It will be helpful to see the Keeratsingh Blog and read his article about Font icons in UWP. You can use other fonts to show icons, emojis, and other special characters. You can also use any external fonts on the windows application. But all universal apps support these fonts. The first is Segoe MDL2 Assets, and the second is Segoe UI Symbols. As I said before, you can use three elements for showing icons and special characters in UWP. The first one is FontIcon. According to the Windows Dev Center, the FontIcon element Represents an icon that uses a glyph from the specified font. I want to add that the FontIcon is a general version of SymbolIcon. It supports any font for showing Unicode characters. The SymbolIcon only uses the Segoe MDL2 font. Both elements are inherited from IconFont Class. But the FontIcon uses the Glyph property to set or get the Unicode value, and The SymbolIcon uses the Symbol property that fills with an enum type of windows symbol.

    <fonticon fontfamily="Segoe MDL2 Assets" glyph=" "></fonticon>
    <fonticon fontfamily="Segoe UI Symbol" glyph=" "></fonticon>

For using SymbolIcon must write as below:

     <symbolicon symbol="Refresh"></symbolicon>
     <symbolicon symbol="Download"></symbolicon>
     <symbolicon symbol="Mail"></symbolicon>

On the other side, if you have some styles on your text block, you can still use the same as previous and in the Text property of Textblock add Icons with Unicode value.

     <textblock fontfamily="Segoe MDL2 Assets" text=" "></textblock>
     <textblock fontfamily="Segoe UI Symbol" text=" "></textblock>

When you use C# instead of XAML to assign fonts, and special characters, you should respect the following syntax. You must use it differently and adds it using ‘\u’

     MyTextBlock.Text = "\uE170";
     MyFontIcon.Glyph = "\uE170";

Next in my app development I needed some mediaplayer icons for my app. I never liked this part before as my workflow was searching through Syncfusion MetroStudio to find suitable icon, which I sometimes could not find; On success I would search through UI guidelines to see how close it is to the default OS icon for that action; then I would save it into SVG; open in InkScape and do the modifications; export as xaml; make some button template that would accept the path; add this to resource dictionary and then assign the style to the particular button.

I thought there must be a better way and within 3 minutes I have found:

<SymbolIcon Symbol="Pause"/>

That is it. I remembered the feeling when I started learning WPF and would find something that would be beyond simple; something that I expected to take an hour to solve, and then it was done in one line of code.

All other system default icons are listed at

https://msdn.microsoft.com/EN-US/library/windows/apps/windows.ui.xaml.controls.symbol.aspx

New icons are infinitely better than Windows 8 AppBar button style images,
but, even though there are all usual player controls, such as play, next, repeatOne… there was no Eject button

Then I got confused with some icons. Save indicates an ancient physical medium, but open is something completely unrelated to save and very unorthodox.

Open File Icon – pulling a file from imaginary storage underneath.

Open Local Icon (Looks like Open a Folder) – pulling a Folder from imaginary storage cabinet underneath.

but then

Save Icon – indicates an ancient physical medium. Standard save icon, but upside-down, and unrelated to open icons

Save Local – indicated putting a storage medium into an imaginary storage underneeth. It is a document that goes onto a storage, not medium into a drive or storage. Think if it depiced a usb drive being plugged – hard to imagine that would depict storing a document into a secure location

So far user learned that open is suggested with upward arrow, but I would not have guessed this means Open With…

Then I wanted I wanted all buttons transparent and the old way doing it in Resources did not work but luckily new way was simpler:


<Style TargetType="Button">
<Setter Property="Background" Value="Transparent" />
</Style>

Link to this post

Tags: Icon design, UI, UWP, XAML

Categorised in: Software Dev

Windows 10: Windows 10 icons missing for UWP apps

Discus and support Windows 10 icons missing for UWP apps in Windows 10 BSOD Crashes and Debugging to solve the problem; This problem has been bugging me for months. Right now I don’t really have the option to make a new user profile or reinstall due to some parts of my…
Discussion in ‘Windows 10 BSOD Crashes and Debugging’ started by NotNite, Nov 15, 2019.

  1. Windows 10 icons missing for UWP apps

    This problem has been bugging me for months. Right now I don’t really have the option to make a new user profile or reinstall due to some parts of my very janky setup, but UWP icons are just gone.

    This question seems to have the same problem as me. The weird thing is the icons aren’t blank (in Start, at least); they are replaced by IrfanView?

    Windows 10 icons missing for UWP apps c7cff570-ba72-4388-ab2a-132265460ba1?upload=true.png

    Windows 10 icons missing for UWP apps 309ce6f2-1345-4582-9490-d0f607c30fe2?upload=true.png

    I’ve tried using sfc /scannow, DISM, deleting icon cache, uninstalling IrfanView, repairing apps, upgrading, and doing an in-place reinstall (keep files and all that jazz, but reinstalls core Windows). It sounds like a corrupt user profile, but my question is how can I fix the user profile without having to move everything? My directory takes up literally 30% of my drive.

    :)

  2. UWP icons are missing

    I noticed that Micrsoft Edge was missing the taskbar icon, and then noticed all UWP apps are missing their icons. You can see this clearly in this screenshot of the lock screen settings:

    Windows 10 icons missing for UWP apps fTMVh.png

    Things tried:

    • Tried repairing Windows using DISM.exe /Online /Cleanup-image /Restorehealth and sfc /scannow, but they didn’t find any problems.
    • Reinstalling Edge with the following command didn’t help either: Get-AppXPackage -AllUsers -Name Microsoft.MicrosoftEdge | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml” -verbose}
    • updating my graphics drivers to no avail.
    • chkdsk C: /f /r /x
    • Get-AppxPackage | Remove-AppxPackage then reboot and follow with Get-AppxPackage -allusers | foreach {Add-AppxPackage -register «$($_.InstallLocation)\appxmanifest.xml» -DisableDevelopmentMode} and reboot again.
    • Try and delete %AppData%..\Local\IconCache.db then restart.
    • Rebuild a Broken Icon Cache in Windows 10 — «To rebuild the icon cache, you have to delete all the iconcache files that appear in this folder»: \AppData\Local\Microsoft\Windows\Explorer

    Any idea what the problem might be, or suggestions on how to get the icons back?

    Windows 10 Pro, 1709; OS Build 16299.192.

  3. App Icons Missing

    Hi Donna,

    Corrupted applications are the possible causes why your program icons are missing after an update. To isolate your issue, we’d like to clarify a few things:

    • When you hover your mouse over your taskbar or Start menu, are you seeing the icons for your apps?
    • Have you tried searching for a specific app and check if it will appear on the search results?

    Meanwhile, we suggest that you repair and reset your applications using the steps shared by Meliton Dec on this

    thread about restoring missing apps.

    Let us know if you need further assistance.

  4. Windows 10 icons missing for UWP apps

    UWP app icons in Windows 10 build 14316 are corrupt

    Pic: Screenshot — e3291153f0df01ad3d2174770a3e7379 — Gyazo

    As you can see, the Win32 app icons are completely fine, but all of the UWP app icons are corrupted. They almost appear as if they’re running in some sort of safe mode.

    Any suggestions?

Thema:

Windows 10 icons missing for UWP apps

  1. Windows 10 icons missing for UWP apps — Similar Threads — icons missing UWP

  2. UWP classic icon missing when alt+tab

    in Windows 10 Gaming

    UWP classic icon missing when alt+tab: Dear all,I have encountered an issue where I switched from thumbnail switcher to classic icon switch.But i found out that all the classic icon is missing….
  3. UWP classic icon missing when alt+tab

    in Windows 10 Software and Apps

    UWP classic icon missing when alt+tab: Dear all,I have encountered an issue where I switched from thumbnail switcher to classic icon switch.But i found out that all the classic icon is missing….
  4. Windows 10 UWP apps all showing wrong icons

    in Microsoft Windows 10 Store

    Windows 10 UWP apps all showing wrong icons: How do I fix this issue and make the UWP apps display the correct icons?

    https://answers.microsoft.com/en-us/windows/forum/all/windows-10-uwp-apps-all-showing-wrong-icons/93ad3df2-f03c-4d1e-b21f-4892d8c54949

  5. Icons disappeared for UWP and Windows apps

    in Cortana

    Icons disappeared for UWP and Windows apps: Hi there, I recently created a thread for the same: https://answers.microsoft.com/en-us/windows/forum/all/the-icons-disappeared-for-uwp-and-windows-apps-in/1e6527f6-2ff7-4216-bfc2-3b4cc074ef50. However the issue seems to have transferred from one PC to another, yesterday it…
  6. The icons disappeared for UWP and windows apps in the search field

    in Cortana

    The icons disappeared for UWP and windows apps in the search field: Hello, I noticed a very peculiar issue. The icons in the search field for windows and UWP apps disappeared and now they show a blank photo icon….
  7. UWP icons missing only on the taskbar

    in Windows 10 Customization

    UWP icons missing only on the taskbar: This problem occured only recently. Just now I launched Calculator and Edge and noticed that their icons are missing. I looked at the taskbar, turns out there were more missing icons. All turned out to be for UWP apps. What to do?…
  8. Wrong icon for Windows 10 metro/uwp apps

    in Windows 10 Ask Insider

    Wrong icon for Windows 10 metro/uwp apps: [ATTACH]

    Hey,

    all icons of metro/uwp apps are displayed with the PNG icon of my image viewer XNview:

    https://preview.redd.it/im5ogvj4xaw31.png?width=786&format=png&auto=webp&s=f3a4946cabf5d4746865ad7e5bb1ff6d86d5fa2f…

  9. UWP app icons in Windows 10 build 14316 are corrupt

    in Windows 10 Software and Apps

    UWP app icons in Windows 10 build 14316 are corrupt: Pic: Screenshot — e3291153f0df01ad3d2174770a3e7379 — Gyazo

    As you can see, the Win32 app icons are completely fine, but all of the UWP app icons are corrupted. They almost appear as if they’re running in some sort of safe mode.

    Any suggestions?

    47775

  10. Windows 10 App Icons Missing

    in Windows 10 Support

    Windows 10 App Icons Missing: Hi guys

    Upgraded to 10 few months ago and loving it but one thing thats kind of annoying me is apps like Mail, Calendar, Ebay etc when i put onto the desktop the app icons stay but after a short time they dissapear and are replaced with a white paper icon

    How can i fix…

Users found this page by searching for:

  1. irfranview icon uwp

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Выход из учетной записи майкрософт windows 11
  • Virtualbox add shared folder windows
  • Как сохранить все драйвера перед переустановкой системы windows 10
  • Почему windows 10 не устанавливается на ssd диск
  • Как подключить ipad к компьютеру windows как второй монитор