or
<Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:DayInterval /> <Rad:HourInterval /> </Rad:RadTimeBar.Intervals>
<Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:DayInterval /> <Rad:HourInterval IntervalSpans="1" /> </Rad:RadTimeBar.Intervals>
I am unable to zoom into the 'hourly mode' (see first screenshot). However<Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:DayInterval /> <Rad:HourInterval IntervalSpans="1,8" /> </Rad:RadTimeBar.Intervals>
allows me to get into the hourly mode but shows the 8 hour interval (which I don't really want). Am I doing something wrong?
The rest of the xaml ( mPlotsGrid is populated with RadLinearSparklines at runtime):<Rad:RadTimeBar Name="mTimeBar" PeriodStart="{Binding Path=BeginHistory, Mode=TwoWay}" PeriodEnd="{Binding Path=EndHistory, Mode=TwoWay}" VisiblePeriodStart="{Binding Path=BeginView, Mode=TwoWay}" VisiblePeriodEnd="{Binding Path=EndView, Mode=TwoWay}" SelectionStart="{Binding Path=BeginDetail, Mode=TwoWay}" SelectionEnd="{Binding Path=EndDetail, Mode=TwoWay}" IsSnapToIntervalEnabled="True" MinSelectionRange="00:01:00" Margin="5"> <Rad:RadTimeBar.Intervals> <Rad:MonthInterval /> <Rad:WeekInterval /> <Rad:DayInterval /> <Rad:HourInterval IntervalSpans="1,8" /> </Rad:RadTimeBar.Intervals> <Grid x:Name="mPlotsGrid" /> </Rad:RadTimeBar>
<telerik:RadTreeView Height="250" HorizontalAlignment="Left" Margin="18,24,0,0" Name="radTreeView1" VerticalAlignment="Top" Width="150" IsLoadOnDemandEnabled="True" LoadOnDemand="OnLoadOnDemand"/>
cs:
private void OnLoadOnDemand(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
RadTreeViewItem item = e.OriginalSource as RadTreeViewItem;
// Adding child items
RadTreeViewItem product = new RadTreeViewItem();
product.Header =
"Product1.1";
item.Items.Add(product);
product =
new RadTreeViewItem();
product.Header =
"Product1.1";
item.Items.Add(product);
}
<
Style
TargetType
=
"telerik:RadCalendar"
x:Key
=
"CalendarBackStyle"
>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource NormalToLightBackgroundBrush}"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadClock"
x:Key
=
"ClockBackStyle"
>
<
Setter
Property
=
"Background"
Value
=
"{StaticResource NormalToLightBackgroundBrush}"
/>
</
Style
>
<
Style
TargetType
=
"telerik:RadDateTimePicker"
>
<
Setter
Property
=
"CalendarStyle"
Value
=
"{StaticResource CalendarBackStyle}"
/>
<
Setter
Property
=
"ClockStyle"
Value
=
"{StaticResource ClockBackStyle}"
/>
</
Style
>
<!--Overwrite Resources, didn't work-->
<
telerik:RadDateTimePicker
>
<
telerik:RadDateTimePicker.Resources
>
<
Style
TargetType
=
"telerik:RadDropDownButton"
>
<
Setter
Property
=
"Background"
Value
=
"Lime"
/>
</
Style
>
</
telerik:RadDateTimePicker.Resources
>
</
telerik:RadDateTimePicker
>
<!--This works but doesn't help because all borders are styled-->
<
telerik:RadDateTimePicker
>
<
telerik:RadDateTimePicker.Resources
>
<
Style
TargetType
=
"Border"
>
<
Setter
Property
=
"Background"
Value
=
"Lime"
/>
</
Style
>
</
telerik:RadDateTimePicker.Resources
>
</
telerik:RadDateTimePicker
>
Dim
p
As
New
RadPane
p.Content =
New
SomeUserControl
paneGroup.AddItem(p, Docking.DockPosition.Center)