<Style x:Key="PieDataPointStyle1" TargetType="{x:Type chartingToolkit:PieDataPoint}"> <Setter Property="Background" Value="Orange"/> <Setter Property="BorderBrush" Value="White"/> <Setter Property="BorderThickness" Value="1"/> <Setter Property="IsTabStop" Value="False"/> <Setter Property="RatioStringFormat" Value="{}{0:p2}"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type chartingToolkit:PieDataPoint}"> <Grid x:Name="Root" Opacity="0"> <Path x:Name="Slice" Data="{TemplateBinding Geometry}" Stroke="{TemplateBinding BorderBrush}" StrokeMiterLimit="1" Fill="#FF1C3C7C"> <Path.ToolTip> <StackPanel> <ContentControl Content="{TemplateBinding FormattedDependentValue}"/> <ContentControl Content="{TemplateBinding FormattedRatio}"/> </StackPanel> </Path.ToolTip> </Path> <Path x:Name="SelectionHighlight" Data="{TemplateBinding GeometrySelection}" Fill="Red" IsHitTestVisible="False" Opacity="0" StrokeMiterLimit="1"/> <Path x:Name="MouseOverHighlight" Data="{TemplateBinding GeometryHighlight}" Fill="White" IsHitTestVisible="False" Opacity="0" StrokeMiterLimit="1"/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)