It is currently Thu Sep 18, 2014 5:42 am




Post new topic Reply to topic  [ 1 post ] 
 Customizable styles for templates 
Author Message
Sergeant
Sergeant

Joined: Tue Jul 27, 2010 10:27 am
Posts: 58
Location: Calgary, AB
Post Customizable styles for templates
This feature request is borderline greedy :-)

I'm starting to use both Templates and customizable styles. Would like to marry both approaches.

What I'd like to do is: define a Template Parameter such as "style" (integer), and then define a number of Internal Properties such as foregroundColor, backgroundColor, etc.

Then, I'd like to use customizable styles so that when the parameter "style" changes to 0, 1, 2, those properties change too. Kind of what you'd do with any other component and customizable styles.

Currently I can do this in two ways, but neither is ideal:
- define all as Template Parameters (no internal properties) and customize styles on each instance of the template (so changes don't propagate)
- bind the internal properties using expressions with if or switch (not very elegant)

Cheers
Ivan


Fri Jun 15, 2012 12:58 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: