Search code examples
xamlwindows-phone-8iconsresource-filesappbar

How do I use DarkIcons.dll in a Windows Phone 8 app?


Building my first Windows Phone 8 app and I am bringing in a few icons to use in the appbar. As I am picking the icons in C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Icons\Dark I see that there is a file called DarkIcons.dll.

Can I use this dll as a resource file and then bind to icons in it?

If so how does that binding work? What does the binding look like?


Solution

  • For AppBar icons, you should use the white "dark" icons in that folder or from other resources like modernuiicons. Add these to your project as a resource and set the icon to be this image. If your application is used on a device that has a light theme, the phone will turn the icons black for you. No need for you to do anything!