HiHow can I change the thickness of the frame of Infragistics.Win.UltraWinSchedule.Appointment object?The ViewStyle of UltraCalendarLook is Office2007I use UltraMonthViewSingle to display the AppointmentsHere is line of code:public static void CustomizeEventAppearance(Event r_oEvent, Infragistics.Win.UltraWinSchedule.Appointment r_oAppointment) { r_oAppointment.Appearance.BorderColor = Color.Blue; //r_oAppointment.Appearance.BorderWidth ????Thank you very much
ThanksBut still I can not change the width of the frame ...
public class MyUltraAppointmentCreationFilter : IUIElementCreationFilter { #region IUIElementCreationFilter Members void IUIElementCreationFilter.AfterCreateChildElements(UIElement parent) { if (parent is Infragistics.Win.UltraWinSchedule.MonthViewSingle.MultiDayAppointmentUIElement) { UIElementBorderWidths l_oBorderwidths = new UIElementBorderWidths(); l_oBorderwidths.Top = 4; l_oBorderwidths.Bottom = 4; l_oBorderwidths.Left = 4; l_oBorderwidths.Right = 4; //UIElementBorderWidths borderwidths = parent.GetBorderWidths(parent.BorderStyle, parent.BorderSides); } } bool IUIElementCreationFilter.BeforeCreateChildElements(UIElement parent) { return false; } #endregion }
The Appointment's border style is not exposed as a public property. You can achieve this using the IUIElementCreationFilter interface, by replacing the AppointmentUIElement instances with instances of a derived class that overrides the UIElement.BorderStyle property.