我想查看我图表中的aces值,但我有以下错误 “'IndependentValue'成员无效,因为它不chartinToolkit WPF“'IndependentValue'成员无效,因为它没有chartinToolkit中的限定类型名称wpf
有限定的类型名称,这是我的代码
<Window x:Class="WpfToolkitChart.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="1031" Width="855" xmlns:chartingToolkit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" FlowDirection="RightToLeft">
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0,-28,0,28">
<Grid Height="500">
<chartingToolkit:Chart Name="lineChart" Title="Line Series Demo" VerticalAlignment="Top" Margin="33,6,6,0" Height="440" Foreground="DarkRed" FlowDirection="LeftToRight" FontFamily="CPalatineLinoType">
<chartingToolkit:LineSeries DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True"/>
<ToolTipService.ToolTip>
<StackPanel Margin="2,2,2,2">
<ContentControl Content="{TemplateBinding IndependentValue}" FontSize="12"/>
<ContentControl Content="{TemplateBinding DependentValue}" FontSize="12"/>
</StackPanel>
</ToolTipService.ToolTip>
</chartingToolkit:Chart>
</Grid>
</ScrollViewer>
请携载任何一个可以帮助我这个 谢谢:)
在
问题主要在xaml我解决了thx :) –