WCSF dynamic theming on pages

Topics: Web Client Software Factory, UIP Application Block discussion
Sep 30, 2009 at 11:41 AM

Hi,

Im new to WCSf so be gentle!

Im trying to figure out the best way to set the aspx page theme dynamically using WCSF. Basically Im taking the URL for a site, and looking to set the theme base on the name of the site, as this is a specific requirement on a project Im working on.

I cant figure out the best place to do this (usually in .net you can do this in the page by setting Page.Theme="Whatever" at page level) as all the pages for the site will have the same theme when the site first loads. I figure I can set this somewhere in context but as Im new Im not sure where the best palce is to do this (we are also using MVP).

I was looking at setting this in the ShellModuleInitializer but dont know if this would work for setting the context up.

Has anyone done anything similar or can point me at the specific area of WCSF where context or page theme can be manipulated.

Thanks in advance.

Oct 2, 2009 at 8:37 PM
Edited Oct 2, 2009 at 10:22 PM

Hi,

I've created a post about this, that provides step by step guidance to achieve what you are trying to do.

I hope that this answer helps you. Your feedback is really appreciated.

Fernando Antivero
http://blogs.southworks.net/fantivero

Oct 5, 2009 at 3:19 PM

Hi,

Many thanks for that! Its exactly what I was after!!

Cheers fantivero.