Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic WPF Scheduling: How to style subheader in viewtype List (Read 2566 times)
Heli
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 44
Joined: Aug 29th, 2016
WPF Scheduling: How to style subheader in viewtype List
Feb 17th, 2017 at 7:08am
Print Post  
Hi,

I try to style the subheader (or what it may be called) of a List view, but can't find a way to achieve this.
I.e. I want to apply HorizontalAlignment=Center.

See the screeshot below, it is the row with the weekday names and the one golden background.

Regards,
Heli
  

List_Weekday_Header.png ( 5 KB | 131 Downloads )
List_Weekday_Header.png
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: WPF Scheduling: How to style subheader in viewtype List
Reply #1 - Feb 17th, 2017 at 9:11am
Print Post  
Hi,

Use the properties of the Calendar.ListViewSettings.CellSettings.HeaderStyle and Calendar.ListViewSettings.CellSettings.CalendarStyle to style the header and content of the cells in the List view. For example, to set the background of the cell header, do:

Code
Select All
calendar.ListViewSettings.CellSettings.HeaderStyle.Background = Brushes.PaleGoldenrod; 


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


I Love MindFusion!

Posts: 44
Joined: Aug 29th, 2016
Re: WPF Scheduling: How to style subheader in viewtype List
Reply #2 - Feb 17th, 2017 at 10:54am
Print Post  
Hi,

that works, thank you!

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