This is a migrated thread and some comments may be shown as answers.

How to hide TimeRuler and

1 Answer 31 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Natasha
Top achievements
Rank 1
Natasha asked on 06 Sep 2018, 01:27 PM

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.

1 Answer, 1 is accepted

Sort by
0
Natasha
Top achievements
Rank 1
answered on 06 Sep 2018, 01:32 PM
Here is the attached image. Forgot to add it.
Tags
ScheduleView
Asked by
Natasha
Top achievements
Rank 1
Answers by
Natasha
Top achievements
Rank 1
Share this question
or