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

Cusom properties on an Selected Appointment

3 Answers 98 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 15 Dec 2014, 07:40 AM
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

3 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 16 Dec 2014, 12:57 PM
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.

 
0
Daniel
Top achievements
Rank 1
answered on 16 Dec 2014, 06:31 PM
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
0
Kalin
Telerik team
answered on 19 Dec 2014, 11:57 AM
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.

 
Tags
ScheduleView
Asked by
Daniel
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or