Overriding default AppointmentItem style with Control Template disables editing

2 posts, 0 answers
  1. Spurk
    Spurk avatar
    40 posts
    Member since:
    Feb 2012

    Posted 22 Sep 2013 Link to this post

    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.
  2. Kalin
    Kalin avatar
    1207 posts

    Posted 25 Sep 2013 Link to this post

    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:

    Hope this will help you.

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top