LOGIN    REGISTER

homepage
VisualHint's blog
Jun02

The PropertyGrid gets Office 2007 and other themes

If you skin your application with famous themes like Office 2007 (blue, black, silver), Office 2003 or Vista, you will be happy to know that SPG.Net now offers these themes too. Here is a (resized) screenshot:

This is feasible thanks to the Krypton Toolkit API (which is a free framework available here). Instead of reinventing the wheel, I contacted Phil Wright to learn more about his toolkit and I learnt that his assembly could be used only to skin custom controls. So I have just created a custom SPG drawing manager: KryptonDrawingManager.cs. It uses all the known themes of the toolkit and you can even design your own palettes.

Del.icio.us it!

Comments and trackbacks

It’s so great to heard this news, cause i use Infragistcs control which has the office 2007 look and feel, this will make my project more consistent in appearence, thanks, Nicolas.

Posted by Dawn on 06/03 at 07:47 AM

Hi,
I am using Infragistics controls for my application. Even I am evaluating the VisualHint PropertyGrid to add into my application. I want to change the theme of the property grid to Office2007Black or any other themes in market. Can anybody post a project which has Krypton Framwork as well as theme changing code? I am unable to download the framework due to broken link to Krypton site. Please help me. Any response appreciated in advance…

Jojo.

Posted by Jojo on 11/21 at 03:50 AM

Wow, it’s great, i was looking for something else, and finally, it helps me a lot.

Be careful to set the DrawManager of the SPG before setting the PaletteMode, else it won’t work, and always use the default office2007blue palette.

Ex:

KryptonDrawingManager kdm = new KryptonDrawingManager(); 
DrawManager = kdm;
kdm.PaletteMode = PaletteMode.Office2007Black;

Great work Nicolas, as usual.

Posted by Rogers on 11/27 at 11:38 AM

Ho, and one other thing, with the last release of krypton toolkit, the renderer.RenderGlyph.DrawSeparator method take one more argument (boolean) in the end, i gave it a true :)

Posted by Rogers on 11/27 at 12:06 PM

Name:

Email:

Location:

URL:

Your comment:

Notify me of follow-up comments?

Submit the word you see below: