Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic WPF Scheduling: Timetable header styling for today, expand current item (Read 4815 times)
Heli
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 44
Joined: Aug 29th, 2016
WPF Scheduling: Timetable header styling for today, expand current item
Mar 1st, 2017 at 4:37pm
Print Post  
Hi,

two questions regarding Timetable view:

1.) I'd like to style the header (showing the date of the current day) to have a golden background when current day is today.

In List and (Single)Month views, there is something like
ShowToday="True" TodayFillBrush="Gold"

The only possibility I see would be to write a converter which delivers gold color for the current day and default color for any other day.
Is there an easier way?

2.) Whe dragging an item (appointment) with duration > 30 min., the item is shown "collapsed" to a 30 minute unit height. How can I force the item to keep its height, so I can read the contents and see its extents while dragging?
When dropped at a valid place, it stays collapsed there (until redraw/refresh).
When dropped at an invalid place, it jumps back to where dragging started and is shown with full height (= good).

Regards,
Heli
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #1 - Mar 2nd, 2017 at 9:30am
Print Post  
Hi,

The attached sample demonstrates how to customize the header of a timetable column by using a custom template (through the TimetableSettings.ColumnHeaderTemplate property).

Regarding the second point, I'm not sure what you mean. I cannot reproduce dragging where the item height is reduced from the original size. Please, provide more details or an image illustrating the problem.

Regards,
Meppy
  

Sample.zip ( 9 KB | 318 Downloads )
Back to top
 
IP Logged
 
Heli
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 44
Joined: Aug 29th, 2016
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #2 - Mar 2nd, 2017 at 10:33am
Print Post  
Regarding point 2: See pictures; number 1 shows the full size appointment before dragging, number 2 shows the collapsed representation during/after dragging.
  

CalItem1.png ( 4 KB | 223 Downloads )
CalItem1.png
CalItem2.png ( 3 KB | 220 Downloads )
CalItem2.png
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #3 - Mar 2nd, 2017 at 12:12pm
Print Post  
Hi,

What settings do you use for the calendar control when this happens? A small sample demonstrating the issue will be appreciated.

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


I Love MindFusion!

Posts: 44
Joined: Aug 29th, 2016
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #4 - Mar 9th, 2017 at 9:44am
Print Post  
Hi,

I set EnableSnapping to false/disable as suggested, now it works.
Thank you!

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