- Welcome, Guest. Please Login or Register
MindFusion  
  Version 2 of our Xamarin Calendar component adds Resource view and support for Universal Windows Platform. Now beta testing spreadsheet component for Java Swing.  
  HomeHelpSearchLoginRegister   
     
     
   
 
Page Index Toggle Pages: 1 Send Topic Print  
WPF Scheduling: Timetable header styling for today, expand current item
Read 413 times

Heli   Offline
YaBB Newbies
*
Posts: 44
I Love MindFusion!


   
     
 
WPF Scheduling: Timetable header styling for today, expand current item
Mar 1st, 2017 at 4:37pm
 
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
 
 
 
IP Logged    
 
     

Meppy   Offline
YaBB Moderator
*****
Posts: 1739
Gender: male
MindFusion support


   
     
 
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #1 - Mar 2nd, 2017 at 9:30am
 
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 | 28 )
 
IP Logged    
 
     

Heli   Offline
YaBB Newbies
*
Posts: 44
I Love MindFusion!


   
     
 
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #2 - Mar 2nd, 2017 at 10:33am
 
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 | 28 )
CalItem1.png
CalItem2.png (3 KB | 26 )
CalItem2.png
 
IP Logged    
 
     

Meppy   Offline
YaBB Moderator
*****
Posts: 1739
Gender: male
MindFusion support


   
     
 
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #3 - Mar 2nd, 2017 at 12:12pm
 
Hi,

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

Regards,
Meppy
 
 
 
IP Logged    
 
     

Heli   Offline
YaBB Newbies
*
Posts: 44
I Love MindFusion!


   
     
 
Re: WPF Scheduling: Timetable header styling for today, expand current item
Reply #4 - Mar 9th, 2017 at 9:44am
 
Hi,

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

Regards,
Heli
 
 
 
IP Logged    
 
     
Page Index Toggle Pages: 1 Send Topic Print