Hi,
New to Infragistics controls, and trying to figure out how to get the integrated zoombar on a data chart to show the same data chart's contents? My XamDataChart has its ZoombarStyle set to a StaticResource, but within the style I've defined, I'm not sure how to set the HorizontalPreviewContent's Value attribute so that the zoombar displays the same chart it's attached to. Is this even possible with the integrated zoombar, or do I need to define my zoombar seperately in this instance? Also, should I assume the integrated zoombar has all of the same features available as non-integrated?
Hello Brett,
Thank you for contacting Infragistics. We have a sample online and in our samples browser for WPF that demonstrates the intergration between the Zoombar and the DataChart.
Data Chart Integration
If you require further assistance or have any additional question please let me know.
Hi there. Thanks for the response, but that's not quite what I was after. The sample you reference doesn't make use of XamDataChart's integrated zoombar, instead defining a separate XamZoomBar, and duplicating the chart's definition within the HorizontalPreviewContent element. Here's what I'm looking at:
...
<Grid x:Name="LayoutRoot"> <Grid.Resources> <Style TargetType="ig:XamZoombar" x:Key="ZoomBarStyle"> <Setter Property="Opacity" Value="0.3"/> <Setter Property="MinHeight" Value="100"/> <Setter Property="HorizontalPreviewContent" <!-- Here be chartin' dragons --> /> </Style> </Grid.Resources> <ig:XamDataChart Name="Chartastic" Grid.ColumnSpan="2" HorizontalZoomable="True" HorizontalZoombarVisibility="Visible" ZoombarStyle="{StaticResource ZoomBarStyle}">
Specifically, I'm unsure what to do with the Setter for HorizontalPreviewContent within the style I've defined. Is it just not possible to do this with the integrated zoombar??Thanks :)