这是我用于图表的代码,一切正常,但是当我添加 LineSeries.ToolTip 标记时出现此错误: xml 命名空间http://schemas.infragistics.com中不存在标记 LineSeries.ToolTip /xaml
<ig:XamDataChart Name="Datachar" VerticalZoomable="True" HorizontalZoomable="True" Width="550" Height="220">
<ig:XamDataChart.Axes>
<ig:CategoryXAxis x:Name="xAxis" ItemsSource="{Binding Data}" Label="{}{Date:MM/yyyy}">
<ig:CategoryXAxis.LabelSettings>
<ig:AxisLabelSettings Location="OutsideTop" Extent="45" VerticalAlignment="Center" Visibility="Visible" />
</ig:CategoryXAxis.LabelSettings>
</ig:CategoryXAxis>
<ig:NumericYAxis x:Name="yAxis">
<ig:NumericYAxis.LabelSettings>
<ig:AxisLabelSettings Location="OutsideLeft" Extent="50" VerticalAlignment="Center" Visibility="Visible"/>
</ig:NumericYAxis.LabelSettings>
</ig:NumericYAxis>
</ig:XamDataChart.Axes>
<ig:XamDataChart.Series>
<ig:LineSeries ItemsSource="{Binding Data}" XAxis="{Binding ElementName=xAxis}" YAxis="{Binding ElementName=yAxis}" ValueMemberPath="Value" Thickness="1" MarkerType="None"/>
<ig:LineSeries ItemsSource="{Binding Index}" XAxis="{Binding ElementName=xAxis}" YAxis="{Binding ElementName=yAxis}" ValueMemberPath="Value" Thickness="1" MarkerType="None"/>
<ig:LineSeries.ToolTip>
<StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="2" Text="Value" VerticalAlignment="Center"></TextBlock>
<TextBlock Margin="2" Text="{Binding Item.Value, StringFormat='0,0'}" VerticalAlignment="Center" />
</StackPanel>
</StackPanel>
</ig:LineSeries.ToolTip>
</ig:XamDataChart.Series>
</ig:XamDataChart>