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

Partially transparent appointment background

2 Answers 63 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Andrea Rapuzzi
Top achievements
Rank 1
Andrea Rapuzzi asked on 26 Nov 2013, 11:35 AM
Hi Telerik,

I'm trying to customise the appearance of my RadScheduleView appointments. My target is to display the appointments as rectangles filled with a Transparent color (next I'll add an external border to be shown).

So, on the RadScheduleView, I've set

AppointmentItemContentTemplate="{StaticResource MyTemplate}"

having

<DataTemplate x:Key="MyTemplate">
        <Grid Background="Transparent">
                ...
        </Grid>
</DataTemplate>

However this keeps showing the appointment background filled with the appointment's Category brush.

The strange thing is that if I try to set

<DataTemplate x:Key="MyTemplate">
        <Grid Background="Aqua">
                ...
        </Grid>
</DataTemplate>

the appointment are actually colored in Aqua...

Is there a way to achieve my target?

Thank you!

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 27 Nov 2013, 11:05 AM
Hello Andrea,

The AppointmentItemContentTemplate just changes the content displayed in the Appointment. That's why when you set the Background to Transparent the default color appears which is below the template in the Style of the Appointment. So in order to modify that color you would need to edit the default AppointmentItemBaseStyle and set its Background property to Transparent. I have prepared a sample project which demonstrates the exact approach, please note I have used Implicit Styles to style the ScheduleView.

Hope this helps.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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 >>
0
Andrea Rapuzzi
Top achievements
Rank 1
answered on 27 Nov 2013, 01:56 PM
Kalin,

Thank you very much for your support!
Tags
ScheduleView
Asked by
Andrea Rapuzzi
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Andrea Rapuzzi
Top achievements
Rank 1
Share this question
or