Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic CellHeaderStyle and selected CellHeaderStyle (Read 3010 times)
tl
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 4
Joined: Oct 30th, 2012
CellHeaderStyle and selected CellHeaderStyle
Jun 6th, 2014 at 8:04pm
Print Post  
2 questions related to changing the cell header style... 1) where is the best place to do this, in a custom cell presenter itself, and 2) how do we change the selected cell header style?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: CellHeaderStyle and selected CellHeaderStyle
Reply #1 - Jun 9th, 2014 at 6:05am
Print Post  
Hi,

To customize the cell headers (in a Single Month view), use the properties exposed by Calendar.MonthSettings.HeaderStyle and Calendar.MonthSettings.SelectedElementsHeaderStyle objects. For example, to customize the background of the header, you can use the following code:

Code
Select All
calendar.MonthSettings.HeaderStyle.Background = normalHeaderBrush;
calendar.MonthSettings.SelectedElementsHeaderStyle.Background = selectedHeaderBrush; 


For greater control over the cell appearance, you could use custom cell presenters. The sample below illustrates how to implement a custom presenter in the Single Month view:

https://mindfusion.eu/_samples/_sample_CustomMonthCalendar10.zip

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