.comment-link {margin-left:.6em;}

I Hate Linux

Thursday, November 15, 2007

WHS Developer Tip #5: Images and Icons

Q: How can I use some of the pictures and icons that are used by the Home Server Console?

A: Rather than violating the EULA and ripping the images you want straight from the files that came with Windows Home Server (which is certainly possible)... you can look to the CommonImages class (Microsoft.HomeServer.Common.Client, WHSCommon.dll) and it's 71 public static properties (69 of which return something), each of which returns different icon or image that can help you better theme your add-in.

Here are some of the available images:

ImagesAndIcons

One unfortunate limitation of CommonImages is that some of the more sought after icons like those used for add, delete, edit and properties are not present... however a green check and red x are.

You could randomly guess which is which... or you can use one of these two applications (C# or VB) which displays them.

CommonImages Example Application

With any luck, eventually Microsoft will make available (either officially or unofficially) more of the art used in the Home Server Console so that developers can better integrate visually with it.

Note: The information in this post is based on undocumented and at times deduced information on Windows Home Server and is not officially supported or endorsed by Microsoft and could very easily be wrong or subject to change in future, so please take it and everything else said on this blog with a grain of salt and use with caution.

Labels:

1 Comments:

  • Fixed a "bug": set platform for Common Images Example by to x86 to fix failure on x64 development systems

    src: http://routercontrol.codeplex.com/SourceControl/ListDownloadableCommits.aspx ; changeset: 47969

    Greetz Felix

    By Anonymous Felix Kollmann, at 3:45 AM  

Post a Comment

<< Home