When the RecurrenceFrequency is set to Year. The GetOccurrences() method of the RecurrencePattern does not respect the Interval property.
hi,
I can I make a feature request please for the appointment item control. I'd like to be able to have the delete button hidden depending on whether my appointment wants to hide the delete button. Some appointments can be deleted, some can't. the problem with the current option of using the schedule control is that it's all appointments can be deleted or all appointments can't.
because of all the different themes and complexity around them I don't want to change the actual underlying template, so to resolve this myself I have made a source code change in AppointmentItem.OnApplyTemplate. I have added this code in to create a binding:
// Stefan: start
// Ensure that the can be Show and hidden depending on the appointment type
var deleteButton = GetTemplateChild("DeleteButton") as Button;
if (deleteButton != null)
{
BindingOperations.SetBinding(deleteButton, Button.VisibilityProperty, new Binding()
{
Path = new PropertyPath("Appointment.ShowDeleteButton"),
Converter = new System.Windows.Controls.BooleanToVisibilityConverter()
});
}
// Stefan: end
hopefully this can be built into the system using a multi-binding where you check for the schedule control allowing deletion and then on a per appointment basis.
Thanks,
Stefan
This is valid for the DayView and the WorkDayView but it could be researched if applicable also for other views. Currently, the maximum height of an appointment is determined by the MinorTickLength applied. If the slots between the ticks are too small, the appointment's subject will be clipped vertically. In Outlook there is a mechanism that applies something like a minimum height which allows the subject to be drawn regardless the actual size of the appointment.
Steps to reproduce: 1.Open the attached solution, build and run the sample application. 2.There are two appointments created in the view. Double click the 'Appointment2' to edit it. 3.Select 'Room 1' from the 'Room' combo box and unselect 'Room 2'. 4.Click OK to apply the changes. 5.'Appointment2' is moved to 'Room 1' however it also becomes unselected as the 'Appointment1' becomes the selected one.
There is a fixed value of 16px set for the Height of the GroupHeader. Thus, when a FontSize bigger than 16px is set, the Text is cut off as the GroupHeader is not resized. The workaround is to predefine the GroupHeaderContentTemplateSelector and remove the fixed Height that is set through it. <telerik:GroupHeaderTemplateSelector x:Key="GroupHeaderContentTemplateSelector"> <telerik:GroupHeaderTemplateSelector.HorizontalTemplate> <DataTemplate> <ContentPresenter Content="{Binding FormattedName}" Margin="4" /> </DataTemplate> </telerik:GroupHeaderTemplateSelector.HorizontalTemplate> <telerik:GroupHeaderTemplateSelector.VerticalTemplate> <DataTemplate> <ContentPresenter Content="{Binding FormattedName}" Margin="4" VerticalAlignment="Top"> <ContentPresenter.LayoutTransform> <RotateTransform Angle="-90" /> </ContentPresenter.LayoutTransform> </ContentPresenter> </DataTemplate> </telerik:GroupHeaderTemplateSelector.VerticalTemplate> </telerik:GroupHeaderTemplateSelector>