Hello,First of all, sorry if my English is bad, I am French and I translate with google. (You will find the French version)I have a problem with the XamOutlookCalendarView control. Some of my clients create appointments by interval of 45 minutes, thus I set the time slot intervals = 15. But the problem is now that the calendar is not displayed fully on the form and the user is forced to a vertical scrollbars to display the appointments of the afternoon.I did not find properties change to force the schedule to be displayed fully on the form with no need to scroll.Is there something I missed? A property I is not found?Thank you for your attention.
Bonjour,Tout d'abord, désolé si mon anglais est mauvais, je suis français et je traduis avec google. (Vous trouverez ci-dessous la version française)J'ai un problème avec le controle XamOutlookCalendarView. Certains de mes clients créent des rendez-vous par intervale de 45 minutes, de ce fait je règle la time slot intervals = 15. Mais le problème est que maintenant le calendrier ne s'affiche pas entièrement sur le formulaire et l'utilisateur est obligé de faire un défillement verticale pour afficher les rendez-vous de l'après-midi.Je n'ai pas trouvé de propriétés à modifier pour forcer le calendrier à s'afficher entièrement sur le formulaire sans avec besoin de le faire défiler.Y a t-il quelquechose que j'ai raté? Une propriété que je n'est pas trouvée?Merci de votre attention.
Hi Wisy,
A developer showed me how I can make the timeslot area smaller so that you can fit more of them on screen, potentially helping you to keep the whole schedule in view. In order to make the timeslots smaller there are two components you need to modify. The first is called the DayViewTimeslotHeader and the second is the AppointmentPresenter. The schedule looks at both when determining the size of the timeslot.
For the DayViewTimeslotHeader I retemplated it to replace the time text that it used before. For the most part the DayViewTimeslotHeader height was determined by the time text it displays and there is no way to make this text smaller. So I replaced the template and added a different time display which has a configureable font size. This means we can make the text smaller and therefore make the DayViewTimeslotHeader smaller.
The next part is to modify the height of a particular AppointmentPresenter. The schedule uses 1 particular AppointmentPresenter in order to figure out how big a single timeslot is going to be. I added a converter that checks each AppointmentPresenter looking for the important one. When it is found, I return the desired height.
These two combined allow the timeslot to become smaller which will help you to fit more of them in view.
One thing to be aware of with this workaround is that if you make the appointments too small, the apppointment text will be cut off. I think you should first just try using the new DayViewTimeslotHeader template and see if that helps you any. Just using this style should decrease the size a little. If you need more reduction then you will have to use the AppointmentPresenter converter.
Merci pour votre réponse, je vais voir comment je peux gérer ça dans mon code.C'est dommage qu'il n'y ai pas une propriété accessible pour forcer la hauteur des cellules.
Hello Wisy,
The TimeSlotInterval property controls the amount of time a single time slot represents. So if you have set the time interval to 15 minutes and your start and end time is 9am - 5pm that means there will be 32 individual time slots that make up that day. If your form cannot fit 32 slots then the control will have no choice but to display a vertical scrollbar.
In order to remove the need for a scrollbar you will need to increase the interval. A larger interval will lower the number of time slots needed to make up the day.