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

Force refreshing the appointments

1 Answer 18 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Иван
Top achievements
Rank 1
Иван asked on 28 Nov 2018, 05:56 AM

My goal is mark with frame some "linked" task. When user select one appointment, then linked appointmemts have to be marked with frame.

I have changed the OrientedAppointmentItemStyleSelector.HorizontalStyle - template of AppointmentItem.

<Border
    x:Name="CommonStatesVisual"
    BorderThickness="3, 3, 3, 3"
    CornerRadius="1"
    Visibility="{Binding Appointment.LinkedVisibility}">
    <Border.BorderBrush>
     ..................
    </Border.BorderBrush>
    <Border x:Name="CommonStatesVisualInnerBorder" BorderBrush="OrangeRed" BorderThickness="3" CornerRadius="1"/>
</Border>

 

So, my problem is refresh the view after changing Appointment.LinkedVisibility property, because only selected Appointment is change the drawing after updating.

P.S. this approach is not applicable for me https://www.telerik.com/forums/need-to-refresh-scheduleview

Can you help me to force redraw for all appointments?

1 Answer, 1 is accepted

Sort by
0
Иван
Top achievements
Rank 1
answered on 28 Nov 2018, 06:41 AM
I have found the solution. There are no need to refresh all view, It is enough to call this.RaisePropertyChanged("LinkedVisibility");
Tags
ScheduleView
Asked by
Иван
Top achievements
Rank 1
Answers by
Иван
Top achievements
Rank 1
Share this question
or