I've got the below code:
private void SetActiveViewRange()
if (ActiveViewDefinition != null)
if (SelectedBuilding == null || SelectedBuilding.Id == Guid.Empty)
ActiveViewDefinition.DayStartTime = new TimeSpan(0, 0, 0);
ActiveViewDefinition.DayEndTime = new TimeSpan(24, 0, 0);
ActiveViewDefinition.DayStartTime = SelectedBuilding.OpenTime.Value.TimeOfDay;
ActiveViewDefinition.DayEndTime = SelectedBuilding.CloseTime.Value.TimeOfDay;
This gets called when my "building" changes. This is because we don't want to show times on the ScheduleView that aren't available to the user.
In the Q1 release, when I ran this code, the ScheduleView would be restricted properly and still fill the whole screen. Now, in the Q2 release, when I run this code, there is a large blank area at the bottom of the ScheduleView. It's like it's not rebuilding itself to take up the whole screen. If I do something to cause the ScheduleView to redraw itself (like change the window size) it takes up the whole space. I can't find any way to force this redraw of the ScheduleView, though. Can someone point me to the right direction? Or a better way to do this that won't cause the blank area at the bottom of the ScheduleView?
This worked in Q1, so I'm not sure if the change is a bug or intentional.