Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic change item color (Read 2397 times)
ibeaz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 1st, 2009
change item color
Oct 1st, 2009 at 2:39pm
Print Post  
Hi,

Is it possible to change the color of individual items? I didn't manage to find out how in the documentation. Some sample code will be greatly appreciated.

thanks,
i. z.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: change item color
Reply #1 - Oct 2nd, 2009 at 6:14am
Print Post  
You can use the SetItemStyle, SetSelectedItemStyle, SetPointedItemStyle and SetPointedSelectedItemStyle methods of the Calendar style to assign custom styles with various states of an item. The following code assigns a new background to an item through a custom style:

Code
Select All
CalendarStyle style = new CalendarStyle();
style.Background = new SolidColorBrush(Color.Yellow);
calendar.SetItemStyle(item, style); 


Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint