In your project you have created a custom AppointmentitemStyleSelector and provided custom styles for appointment items.
The AppointmentItemStyleSelector is by default oriented, which means it is aware of appointment orientation. However, you have created your custom styles with no orientation. This means that the default orientation will be applied first, and then your custom styles will be taken into account.
The default appointment item orientation is horizontal. And the two view definitions you use (DayView and WeekView) use actually the vertical template of the appointment item rather than the horizontal (DayView and WeekView stack appoitnments vertically, so they use vertically oriented appointments). Hence the discrepancy occurs.
I suggest you provide both horizontal and vertical version when creating a style, if you intend to use the new style across views with different orientation. And please , remember to make your custom selector aware of orientation via the activeViewDefinition param.
Or, as in your specific case of using only two vertically oriented views, copy the vertical control template for the appointment item in your newly created style in xaml. Leaving the style with style setters only and with no control template, will result in applying the default template.
I hope this information will be helpful.
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>