Hello,
I am just woindering if there is a way to display more text in the appointment in the monthviewSingle.
I would like the appointment to take the full space of the day to display the most text from the subject instead of the small rounded corner appointment which displays just a few characters.
Is there a way to achieve this?
Thank you
Yes, using the IUIElementCreationFilter interface. In your case you would set the AppointmentUIElement.Rect property to the same value as the DayUIElement.RectInsideBorders. Note that this makes assumptions like there is only one appointment in a given day, and that appoointment does not span multiple days.
Hello Brian,
Thanks for the prompt reply, this looks promising. and I am not sure if this is possible, what if I have two or three appointments where I would like the height of those 2 appointments to take the full day in the monthViewSingle, is there a way to check at "BeforeCreateChildElements" if I already have another appointment in this day element
Another thing Is once I have this big rectangle can I have the appointment text wrap to display as much text as possible?
This is what I have so far
If TypeOf parent Is MonthViewSingle.AppointmentUIElement Then
If parent.GetAncestor(GetType(MonthViewSingle.DayUIElement)) IsNot Nothing Then
Dim newRec As System.Drawing.Rectangle
newRec = parent.GetAncestor(
GetType(MonthViewSingle.DayUIElement)).RectInsideBorders
newRec.Height = newRec.Height * 0.8
newRec.Y += 20
'What if I have two appointments or more is there a way to resolve this
parent.Rect = newRec
'Trying to get the text to wrap
If parent.GetDescendant(GetType(TextUIElement)) IsNot Nothing Then
parent.GetDescendant(
GetType(TextUIElement)).Rect = newRec
End If