Hello!
I am trying set the style of the appointments of the calendar but for some reason this combination breaks the alignment somehow, here is the code I am using:
I am trying set the style of the appointments of the calendar but for some reason this combination breaks the alignment somehow, here is the code I am using:
CalendarAppointmentsStyle GetCalendarStyle()
{
return
new
CalendarAppointmentsStyle
{
DisplayMode = AppointmentDisplayMode.TextWithShape,
//DisplayMode = AppointmentDisplayMode.Shape,
Padding =
new
Thickness(0, 4, 0, 2),
MaxCount = 2,
Spacing = 2,
MoreTextFormatString =
"+"
,
MoreTextColor = Color.Black,
ReserveIndicatorSpace =
false
,
TextHorizontalLocation = HorizontalLocation.Center,
TextVerticalLocation = VerticalLocation.Bottom,
ShapesHorizontalLocation = HorizontalLocation.Center,
ShapesVerticalLocation = VerticalLocation.Bottom,
ShapesOrientation = Orientation.Horizontal,
ShapeSize =
new
Size(8, 8),
ShapeType = CalendarAppointmentShapeType.Ellipse,
};
}
In stead of showing like this:
Image1
It is being showed like this:
Image2
Any fixes for this?