2012-03-20 8 views
1

私はWPFでLabeledPieChartsを作成したい(出典:Bea's Blog) 私はDemoProjectをダウンロードして実行しています。私はLabeledPieChartを作成したい場合は、このエラーで失敗します。PieChart with Labels

The Tag "LabeledPieChart.Series" isn't in XML-Namespace "clr-namespace:Controls;assembly=Controls". Line 65 Position 14. 

ここに私のコードです:

<customControls:LabeledPieChart x:Name="labeledPieChart" 
           Title="Population of Puget Sound Cities" 
           Grid.Row="3" 
           Width="700" 
           Height="500" 
           BorderBrush="Gray"> 
    <customControls:LabeledPieChart.Series> 
     <customControls:LabeledPieSeries x:Name="labeledPieSeries" 
             DependentValuePath="Population" 
             IndependentValuePath="Name" 
             IsSelectionEnabled="True" 
             ItemsSource="{Binding}" 
             LabelDisplayMode="Auto" 
             PieChartLabelItemTemplate="{StaticResource pieChartLabelDataTemplate}" 
             PieChartLabelStyle="{StaticResource pieChartLabelStyle}" /> 
    </customControls:LabeledPieChart.Series> 
</customControls:LabeledPieChart> 

答えて

0

私はプロジェクトをダウンロードして、あなたのコードが正常に動作するようです。たぶんthis questionあなたを少し助けるでしょう。

+1

あなたの答えに感謝します。エラーが見つかりました。プロジェクトでは2つの "control.dll"ファイルがあり、それらは異なっていました。それらの1つはプロパティ "シリーズ"を持っていない –

関連する問題