ScheduleView/TimeBar does not update view when scrolling/zooming

0 Answers 58 Views
ScheduleView TimeBar
Technik
Top achievements
Rank 1
Technik asked on 20 Jul 2022, 09:40 AM

Tried to adapt the ScheduleView and TimeBar (MiniMap) example. from the WPF Example Controls App.

As in the example the ScheduleView and TimeBar lie in the same column. As in the example TimeBars VisiblePeriodStart is bound to CurrentDate of MiniMapScheduleView. Visible Days of MiniMapScheduler are calculated by a Converter from TimeBar VisiblePeriod..

The problem is that the underlying ScheduleView is only updating its view when clicking on the TimbeBar (even on startup/when itemsource is new bound)).

When scrolling or zooming in the TimeBar all shown MiniMap appointments vanish except the ones which are in the area "selected" by the TimeBer Selector. 

Only when clicking again in the TImeBar (Selection) all MIniMap appointment appear again.

in the mentioned example the underlying ScheduleView updates instant and accordingly to the timebars zoom level.

Tried already:

Manually Update Scheduler (UpdateLayout() etc. in VisiblePeriodChanged- no effect.

Copied the bound Appointments observable collection from the MasterScheduleView to an own MiniMapAppointmentsCollection (thought had maybe something to do with virtuilaziation) - no effect.

Automatically updating the view when changing the underlying parameters (ItemsSource,VisiblePeriod, VisibleDays etc. etc) should be something very essential, am i missing something?

 

 

 

No answers yet. Maybe you can help?

Tags
ScheduleView TimeBar
Asked by
Technik
Top achievements
Rank 1
Share this question
or