How do I hide the Time Ruler above the ScheduleView i.e. the TimeRulerItem and TimeRulerGroupItem?
I have tried the following:
<
scheduleView:TimeRulerItemTemplateSelector
x:Key
=
"TimeRulerItemTemplateSelector"
>
<
scheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate
>
<
DataTemplate
>
<
WrapPanel
Background
=
"{StaticResource Palette_7}"
>
<
TextBlock
Padding
=
"5"
Text
=
"{Binding FormattedValue}"
Foreground
=
"{StaticResource White_Colour}"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
FontSize
=
"11"
/>
</
WrapPanel
>
</
DataTemplate
>
</
scheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMajorItemTemplate
>
<
scheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate
>
<
DataTemplate
>
<
WrapPanel
Background
=
"{StaticResource Palette_7}"
>
<!--<
TextBlock
Padding
=
"5"
Text
=
"{Binding FormattedValue}"
Foreground
=
"{StaticResource White_Colour}"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
FontSize
=
"11"
/>-->
</
WrapPanel
>
</
DataTemplate
>
</
scheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineMinorItemTemplate
>
<
scheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate
>
<
DataTemplate
>
<
WrapPanel
Background
=
"{StaticResource Palette_2}"
>
<
TextBlock
Padding
=
"5"
Text
=
"{Binding FormattedValue}"
Foreground
=
"{StaticResource White_Colour}"
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
FontSize
=
"14"
MinWidth
=
"50"
/>
</
WrapPanel
>
</
DataTemplate
>
</
scheduleView:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate
>
</
scheduleView:TimeRulerItemTemplateSelector
>
<
Style
TargetType
=
"scheduleView:TimeRulerGroupItem"
x:Key
=
"TimeRulerGroupItemStyle"
>
<
Setter
Property
=
"Visibility"
Value
=
"Collapsed"
></
Setter
>
</
Style
>
<
Style
TargetType
=
"scheduleView:TimeRulerItem"
x:Key
=
"TimeRulerItemHide"
>
<
Setter
Property
=
"Visibility"
Value
=
"Collapsed"
></
Setter
>
</
Style
>
<
scheduleView:OrientedTimeRulerItemStyleSelector
HorizontalGroupItemStyle
=
"{StaticResource TimeRulerGroupItemStyle}"
MajorHorizontalTickStyle
=
"{StaticResource TimeRulerItemHide}"
MinorHorizontalTickStyle
=
"{StaticResource TimeRulerItemHide}"
x:Key
=
"TimeRulerItemStyleSelector"
>
</
scheduleView:OrientedTimeRulerItemStyleSelector
>
<
telerik:RadScheduleView
TimeRulerItemTemplateSelector
=
"{StaticResource TimeRulerItemTemplateSelector}"
TimeRulerItemStyleSelector
=
"{StaticResource TimeRulerItemStyleSelector}"
</telerik:RadScheduleView>
But it causes incredibly weird behavior that has left me stumped. When I scroll it shows the time ruler but only half rendered and it only seems to apply the rule to some of the items. See the attached picture to see what I mean.