Partially transparent appointment background

3 posts, 1 answers
  1. Andrea Rapuzzi
    Andrea Rapuzzi avatar
    28 posts
    Member since:
    Apr 2010

    Posted 26 Nov 2013 Link to this post

    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. Answer
    Kalin
    Admin
    Kalin avatar
    1208 posts

    Posted 27 Nov 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Andrea Rapuzzi
    Andrea Rapuzzi avatar
    28 posts
    Member since:
    Apr 2010

    Posted 27 Nov 2013 Link to this post

    Kalin,

    Thank you very much for your support!
Back to Top