Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic different colour for weekends (Read 4107 times)
alexFM
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Jul 8th, 2013
different colour for weekends
Jul 8th, 2013 at 1:37pm
Print Post  
Hello,

I'm sorry to bother you, but I wanted to know how can I show the weekend in a different colour as the rest of the days in all of my resources?

I wanted to see if there is an easy way of achieving this or I need to come up with something a little bit more complicated.

Thanks for your time.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: different colour for weekends
Reply #1 - Jul 8th, 2013 at 1:51pm
Print Post  
Hi,

If you are using the ResourceView, you can set the weekend color like this:

Code
Select All
calendar.ResourceViewSettings.WeekendStyle.Brush = new MindFusion.Drawing.SolidBrush(Color.Red); 


Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
alexFM
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Jul 8th, 2013
Re: different colour for weekends
Reply #2 - Jul 8th, 2013 at 3:46pm
Print Post  
Hi,

I have tried that, but it doesn't work.

Any other way of showing the weekends?

Thanks for your time.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: different colour for weekends
Reply #3 - Jul 9th, 2013 at 5:41am
Print Post  
Hi,

Can you attach a sample illustrating the scenario where this property does not work?

Regards,
Meppy
  
Back to top
 
IP Logged
 
alexFM
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 3
Joined: Jul 8th, 2013
Re: different colour for weekends
Reply #4 - Jul 9th, 2013 at 8:36am
Print Post  
Hello,

This is how my calendar looks like and I want to show the Saturdays and Sundays in a different colour.

Any changes in the display would be appreciated.

Thank you!
  

Calendar_View.PNG (Attachment deleted)
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: different colour for weekends
Reply #5 - Jul 9th, 2013 at 10:09am
Print Post  
If you are using custom drawing for the resource view cells, you need to manually paint the weekend cells differently. You can check the DrawEventArgs.Date property. If it is Saturday or Sunday, simply use different fill brush.

If you are using the Resource.CustomBrushes properties, then SecondaryBrush will be used for the weekend cells.

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