Hi
Using either xaml or code behind (preferably xaml) is it possible to hide the legend and zoombar elements (hide as in do not reserve space)?
Thanks in advance
Hello Simon,
You can set the visibility of the XamZoombar and the TimeLineLegend to collapsed using either an implicit or a keyed style. For example:
<Window.Resources>
<Style x:Key="LegendStyle" TargetType="{x:Type ig:TimelineLegend}">
<Setter Property="Visibility" Value="Collapsed"/>
</Style>
<Style x:Key="ZoombarStyle" TargetType="{x:Type ig:XamZoombar}">
</Window.Resources>
<ig:XamTimeline x:Name="xamTimeline" ZoombarStyle="{StaticResource ZoombarStyle}" LegendStyle="{StaticResource LegendStyle}">
Please let me know if you have any questions.
Sincerely,
Valerie
Software Developer
Infragistics Inc
Hi Valerie, thank you for your prompt response,
The xaml provided does hide the elements however the bottom border of the visible xamline seems to be missing.
Any ideas?
Many thanks
Simon
Looks like the default style has the border thickness set to 1,1,1,0. You can again use either a keyed or implicit style to change this. For example:
<Style x:Key="TimelineStyle" TargetType="{x:Type ig:XamTimeline}">
<Setter Property="BorderThickness" Value="1,1,1,1"/>
<ig:XamTimeline x:Name="xamTimeline" Style="{StaticResource TimelineStyle}"
ZoombarStyle="{StaticResource ZoombarStyle}" LegendStyle="{StaticResource LegendStyle}">
</ig:XamTimeline>