Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Can we control the drawing of an appointment (Read 887 times)
Bruno Dufour
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 15
Joined: Jul 28th, 2022
Can we control the drawing of an appointment
Aug 1st, 2022 at 10:14pm
Print Post  


1.
Can we add line delimiter on each side of an appointment (I will like to clearly a separator between appointment)
2.
Can we change the color (currently, all appointments are green) on a specific appointment (use color to show different types of appointment) ?

Thanks for your help.
  
Back to top
 
IP Logged
 
Slavcho
God Member
*****
Offline


tech.support

Posts: 3146
Joined: Oct 19th, 2005
Re: Can we control the drawing of an appointment
Reply #1 - Aug 2nd, 2022 at 1:48pm
Print Post  
You can customize item appearance through item's Style object -

Code
Select All
Style itemStyle = item.getStyle();
itemStyle.setHeaderBorderLeftColor(Color.red);
itemStyle.setHeaderBorderLeftWidth(3);
itemStyle.setHeaderBrush(new SolidBrush(Color.blue)); 



There should be some borders visible in default theme. Try removing that line if you have it from some sample code (I think it's where the green you mention comes from) -

Code
Select All
calendar.setTheme(ThemeType.Light); 



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