How do I change the appearance of each of these: date of current value, today's date, special days, date under cursor as it moves, etc.. For example, I may want the current value's date to be an outline only, special days to be green with no border, today to be white font on black, etc.?
when I set this.ShowUpDown = true; in a custom control VS can no longer draw the UI of any form that uses the control and when the app is run the next line of code (RadDateTimePickerCalendar calendarBehavior = (this.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar);) returns calendarBehavior as a null value. Is ShowUpDown deprecated or is this a bug?
I tried to follow this http://www.telerik.com/community/forums/winforms/calendar-and-datetimepicker/disable-future-dates-on-datetimepicker-calender-element.aspx but the disabling only happens when the calendar is initially drawn ... (does not refresh when moving to other months) ... I fixed it by subscribing to the events for <, >, <<, >> buttons ... is this the best approach or is there one event for when the calendar changes?
How do I change the image (from the combobox default to my calendar.png)?
I tried this (that I found on the forums)
RadDateTimePickerArrowButtonElement button = (RadDateTimePickerArrowButtonElement)this.DateTimePickerElement.ArrowButton.Children.Children;
((ImagePrimitive)button.Children).Image = ImageLibrary.Calendar;
which failed because the first Children did not have any children resulting in a null reference.
I also tried this which looked obvious ...
this.DateTimePickerElement.ArrowButton.Image = ImageLibrary
but the appearance of the control did not change.
When my custom control sets
this.Format = DateTimePickerFormat.Custom;
this.CustomFormat = "MM/dd/yyyy - ddd";
these properties are ignored and must be explicitly set for each control where implemented. Other values like
this.NullText are inherited from my controls as expected.