Themes & Layout
- From: "Sol" <sol@xxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 21:23:39 -0000
Hi Guys,
I'm looking for some advice / guidelines on using Themes with an application
I am working on. The application needs to allow people to customize the
appearance utilizing what I would consider to be a Themeing and Skinning
mechanism. What is critical is that this should be as flexible as possible.
What I would like to do is use the built-in Themeing mechanism to allow the
customization, but as we know, the App_Theme folder cannot contain ASPX or
ASCX files. What I really want is for the Theme to dicatate the layout and
hence have Html code. For example if I have a User Control that looks like
the following:
<table>
<tr><td>#ModuleTitle</td></tr>
<tr><asp:datagrid runat="server" id="someGrid" /></td></tr>
</table>
Now I want a user to be able to customize this eg:
<table>
<tr>
<td><img src="leftCorner.jpg"></td>
<td>#ModuleTitle</td>
<td><img src="rightCorner.jpg"></td>
</tr>
<tr>
<td><img src="leftCorner.jpg"></td>
<td><asp:datagrid runat="server" id="someGrid" /></td>
<td><img src="rightCorner.jpg"></td>
</tr>
</table>
Of course, I can dynamically load a user control which is ideal in this
scenario, but it appears as though I will need to create a second Themes
folder to hold all my UserControls. This makes it confusing for someone to
create a new Theme since they would need to add folders and files to both
the App_Theme folder and my own custom Theme folder.
I do want the user to be able to modify / create '.skin' files which will
allow customization of any controls used.
So what recommendations do people have to work around this flaw?
.
- Follow-Ups:
- RE: Themes & Layout
- From: Luke Zhang [MSFT]
- RE: Themes & Layout
- Prev by Date: Re: Windows Service Error
- Next by Date: Menu Control - ASP.NET 2.0
- Previous by thread: Re: how to pass value from first form to second form?
- Next by thread: RE: Themes & Layout
- Index(es):
Relevant Pages
|