Cusom properties on an Selected Appointment

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    3 posts
    Member since:
    Dec 2014

    Posted 15 Dec 2014 Link to this post

    Hi,

    Can you guide me on the simplest way of how I can change the Background of an Selected Appointment ?
    I also want to customize the Opacity and the Border and also all this when hover on it.

    I successfully changed different properties of an appointment, but I'm not sure how to change the selected properties.

    Thanks,
    Daniel
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 16 Dec 2014 Link to this post

    Hi Daniel,

    In order to modify the appearance on the currently SelectedAppointment, you would need to extract and modify the default AppointmentItem Template (you can find it in the Telerik.Windows.Control.ScheduleView.xaml file). You will have to modify all the borders that are affected by the Selected VisualState. For more details on how to extract and modify the default Appointment Style and Template, please check the following article from our online help documentation:
    http://docs.telerik.com/devtools/wpf/controls/radscheduleview/styles-and-templates/appointment-style

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    3 posts
    Member since:
    Dec 2014

    Posted 16 Dec 2014 in reply to Kalin Link to this post

    Hi Kalin,

    Thanks for your answer.
    Do you know if I can modify somehow only the border with the Selected VisualState or I need to copy and paste all the ControlTemplate's for each view in my project ? I would actually like to bind a color from my custom appointment in <Border x:Name="SelectionVisual" Visibility="Collapsed" Background="{telerik1:VisualStudio2013Resource ResourceKey=AccentMainBrush}"/> and not copy all the ControlTemplate to do that.

    Thanks,
    Daniel
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 19 Dec 2014 Link to this post

    Hi Daniel,

    I'm afraid you would need to extract and modify the default ControlTemplate for the Vertical as well as for the Horizontal Appointment Styles (they are applied for the depending on the orientation of the current ViewDefinition).

    Hope this helps.

    Regards,
    Kalin
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top