Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1855
horizontalPreviewContent - xamzoombar
posted

I have the following xamdatachart that works correctly.  I need to show the same chart inside the xamzoombar. HOwever when i place it inside <XamZoombar.HorizontalPreviewContent> no data is showing up on the xamdatachart that is my preview chart in my xamzoombar

<ig:XamDataChart MouseLeftButtonDown="Chart_MouseLeftButtonDown" MouseRightButtonDown="Chart_OnMouseRightButtonDown" PreviewMouseWheel="OnPreviewMouseWheel" DefaultInteraction="None" Grid.Row="1" Height="85" HorizontalAlignment="Stretch" Name="FlowChart" HorizontalZoomable="True" VerticalZoomable="False" VerticalZoombarVisibility="Collapsed" HorizontalZoombarVisibility="Collapsed" Margin="5,0,0,0">
<ig:SyncManager.SyncSettings>
<ig:SyncSettings SyncChannel="syncGroup1"
SynchronizeHorizontally="True"
SynchronizeVertically="False" />
</ig:SyncManager.SyncSettings>
<ig:XamDataChart.Axes >
<ig:CategoryXAxis x:Name="XAxis" ItemsSource="{Binding}" >
</ig:CategoryXAxis>
<ig:NumericYAxis x:Name="YAxis" MaximumValue="-60" Interval="60" MinimumValue="60">
<ig:NumericYAxis.LabelSettings>
<ig:AxisLabelSettings Location="OutsideLeft" Extent="30" />
</ig:NumericYAxis.LabelSettings>
</ig:NumericYAxis>
</ig:XamDataChart.Axes>
<ig:XamDataChart.Series>
<ig:LineSeries ValueMemberPath="Flow" ItemsSource="{Binding}" XAxis="{Binding ElementName=XAxis}" YAxis="{Binding ElementName=YAxis}" MarkerType="None" Resolution="1.5" UnknownValuePlotting="DontPlot">
<ig:LineSeries.ToolTip>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding Path=Flow, Source={x:Static Internationalization:CultureResources.CultureStrings}}"
FontWeight="Bold" />
<StackPanel Orientation="Horizontal">

<TextBlock Text="{Binding Item.Flow}" />
</StackPanel>
</StackPanel>
</ig:LineSeries.ToolTip>
</ig:LineSeries>
</ig:XamDataChart.Series>
</ig:XamDataChart>