This is a migrated thread and some comments may be shown as answers.

Overriding default AppointmentItem style with Control Template disables editing

1 Answer 143 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Spurk
Top achievements
Rank 1
Spurk asked on 22 Sep 2013, 07:43 PM
I want to override the 'Selected' state for an AppointmentItem.  To do this, I know that I must override the ControlTemplate for AppointmentItem and look at the states for the Selected event.  Using either Visual Studio or Blend, I 'edit a copy' to allow for the creation of the required resources to work from (TargetType="{x:Type telerik:AppointmentItem}").  As soon as this control template is generated & used (as-is -- before making my desired changes), double clicking an appointment to edit the properties no longer works.  If I remove/comment-out the control template, the double click to edit event fires normally.

Any assistance would be greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 25 Sep 2013, 11:19 AM
Hi Sheldon,

I would suggest that you use Implicit Styles in order to modify the default Appointment Style. This will help you extract all the required parts in order to modify the Appointment ControlTemplate. First thing you will need to do is to extract the default AppointmentItemStyleSelector which contains the horizontal and vertical Appointment styles which are required in the different ViewDefinitions. After that you will need extract both styles and modify the Appointment templates as required. For more information please check the Appointment Style article from our online help documentation:
http://www.telerik.com/help/wpf/radscheduleview-styles-and-templates-appointment-style.html

Hope this will help you.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ScheduleView
Asked by
Spurk
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or