Appointment Items triggers

1 posts, 0 answers
  1. Josh
    Josh avatar
    17 posts
    Member since:
    Aug 2012

    Posted 14 May 2013 Link to this post

    Hi I am trying to change the background color of an appointment based on its current state. I am holding the current state in a custom appointment and trying to use a datatrigger to update the background color. I know that the data is being changed but it is never reflected on the gui.

    <Style x:Key="EventBase" TargetType="telerik:AppointmentItem">
            <Setter Property="VerticalAlignment" Value="top"/>
            <Setter Property="Height" Value="22"/>
            <Setter Property="Foreground" Value="White"></Setter>
     <Style x:Key="RuntimePhaseDefination" TargetType="telerik:AppointmentItem"  BasedOn="{StaticResource EventBase}">
            <Setter Property="Background" Value="Gray"></Setter>
                <DataTrigger Binding="{Binding IsSuccessfullyCompleted,Mode=TwoWay}" Value="True">
                    <Setter Property="Background" Value="Green"></Setter>

    Can this be done with an appointment? I have also tried binding the IsSuccessfullyCompleted to the background and using a converter but still get no results on the gui.
Back to Top