DropShadow効果を使用して円グラフを作成したいので、PieDataPointオブジェクトに効果を適用しようとしましたが、機能しませんでした。円の影を付ける代わりに、円のスライスごとに独自の影を描画します。下の画像でわかるように、その隣人:
1 に答える
0
最終的に、グラフのテンプレート内の EdgePanel に DropShadow 効果を設定すると、機能しました。
<Charting:Chart.Template>
<ControlTemplate TargetType="Charting:Chart">
<Border>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<chartingprimitives:EdgePanel x:Name="ChartArea" Style="{TemplateBinding ChartAreaStyle}">
<chartingprimitives:EdgePanel.Effect>
<DropShadowEffect
ShadowDepth = "5"
Direction = "330"
Color = "Gray"
Opacity = "0.5"
BlurRadius = "10">
</DropShadowEffect>
</chartingprimitives:EdgePanel.Effect>
</chartingprimitives:EdgePanel>
<charting:Legend x:Name="Legend" BorderThickness="0" Grid.Row="1" HorizontalAlignment="Center"/>
</Grid>
</Border>
</ControlTemplate>
</Charting:Chart.Template>
于 2012-07-02T10:52:05.267 に答える