The period range is 2010/01/01 - 2014/12/31. I only want 1 week to display for the Visible Period. My Visible range is set to 2012/05/01 - 2012/05/07.
Here is the XAML
<Grid x:Name="LayoutRoot" Background="White">
<telerik:RadTimeBar x:Name="RadTimeBar1"
Height="100"
PeriodStart="{Binding StartPeriod, Mode=TwoWay}"
PeriodEnd="{Binding EndPeriod, Mode=TwoWay}"
VisiblePeriodStart="{Binding VisibleStartPeriod, Mode=TwoWay}"
VisiblePeriodEnd="{Binding VisibleEndPeriod, Mode=TwoWay}"
SelectionStart="{Binding SelectionStartPeriod, Mode=TwoWay}"
SelectionEnd="{Binding SelectionEndPeriod, Mode=TwoWay}">
<telerik:RadTimeBar.Intervals>
<telerik:DayInterval />
<telerik:WeekInterval />
<telerik:MonthInterval />
</telerik:RadTimeBar.Intervals>
</telerik:RadTimeBar>
</Grid>
Here is the constructor of my ViewModel
public TestBindingsViewModel()
{
StartPeriod = new DateTime(2010, 1, 1);
EndPeriod = new DateTime(2014, 12, 31);
VisibleStartPeriod = new DateTime(2012, 5, 1);
VisibleEndPeriod = new DateTime(2012, 5, 7);
SelectionStartPeriod = new DateTime(2012, 5, 2);
SelectionEndPeriod = new DateTime(2012, 5, 2);
}
Thank you