I want to hide the major and minor TimeRulerLines. All looks good until you look at the Month and TimeLine view and notice that the major and minor tick lines are not there. Everything looks as desired on the Day and Week view. Here is my code...
taskBoardScheduleView.TimeRulerItemStyleSelector = new CustomTimeRulerItemStyleSelector();public class CustomTimeRulerItemStyleSelector : OrientedTimeRulerItemStyleSelector { public Style MinorTickLineStyle { get; set; } public Style MajorTickLineStyle { get; set; } public override Style SelectStyle(object item, DependencyObject container, ViewDefinitionBase activeViewDeifinition) { if (container is TimeRulerLine) { TickData tick = item as TickData; if (tick.Type == TickType.Minor || tick.Type == TickType.Major) { return Application.Current.FindResource("TransparentTickLineStyle") as Style; } return base.SelectStyle(item, container, activeViewDeifinition); } return base.SelectStyle(item, container, activeViewDeifinition); } }<Style x:Key="TransparentTickLineStyle" TargetType="{x:Type telerik:TimeRulerLine}"> <Setter Property="BorderBrush" Value="Transparent"/> <Setter Property="Background" Value="White"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik:TimeRulerLine}"> <Border x:Name="LineVisual" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="0,1,0,0" Background="{TemplateBinding Background}"/> <ControlTemplate.Triggers> <Trigger Property="Orientation" Value="Horizontal"> <Setter Property="BorderThickness" TargetName="LineVisual" Value="1,0,0,0"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style>