Hi,
I am trying to use timeline component, and here is what I write in (view) xaml file,
I am trying to use timeline component, and here is what I write in (view) xaml file,
<
telerik:RadTimeline
Height
=
"80"
PeriodStart
=
"{Binding StartDate, Mode=TwoWay}"
PeriodEnd
=
"{Binding EndDate, Mode=TwoWay}"
VisiblePeriodStart
=
"{Binding VisibleStart, Mode=TwoWay}"
VisiblePeriodEnd
=
"{Binding VisibleEnd, Mode=TwoWay}"
StartPath
=
"Date"
DurationPath
=
"Duration"
ItemsSource
=
"{Binding Results}"
>
and in the (view model) code behind,
and turns out the VisibleStart is forced to set as StartDate, it looks like be changed at
private
void
InitTimeRange()
{
StartDate = DateTime.Today;
EndDate = StartDate.AddDays(1);
DateTime now = DateTime.Now;
VisibleStart = now.AddMinutes(-30);
VisibleEnd = now.AddMinutes(30);
}
and turns out the VisibleStart is forced to set as StartDate, it looks like be changed at
TimeBarBase.CoerceVisiblePeriod(),
while VisibleEnd seems to be correct,
is it a calling sequence issue here? how can I fix this?
Thanks
while VisibleEnd seems to be correct,
is it a calling sequence issue here? how can I fix this?
Thanks