0

を表示するBubbleChartために個人を追加したい場所にこれがあります。これを行ったとき、2 番目のシリーズを追加するまではすべて問題ありませんでした。以前の色設定 (各シリーズは異なる色) はなくなり、各シリーズは同じ色になりました。誰かがシリーズのデフォルトの色にバインドすることを知っていますか?StyleToolTipToolTip

を試しましたTemplate Bindingが、うまくいきません。

<Style x:Key="BubbleToolTipTemplate" TargetType="{x:Type c:BubbleDataPoint}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="c:BubbleDataPoint">
                <Grid RenderTransformOrigin=".5,.5">
                    <Grid.RenderTransform>
                        <ScaleTransform ScaleX=".75" ScaleY=".75" />
                    </Grid.RenderTransform>

                    <!-- This Ellipse should bind on the default color -->
                    <Ellipse  Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" />
                    <ContentPresenter Content="{TemplateBinding Size}" HorizontalAlignment="Center" VerticalAlignment="Center" />

                    <ToolTipService.ToolTip>
                        <StackPanel>
                            <ContentControl Content ="{ TemplateBinding DependentValue, Converter={StaticResource DoubleToStringConverter}}" />
                            <ContentControl Content ="{ TemplateBinding IndependentValue}"/>
                            <ContentControl Content ="{ TemplateBinding Size }" />
                        </StackPanel>
                     </ToolTipService.ToolTip>
                 </Grid>
             </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>  

たぶん、誰かが以前にこれを処理しました!どんな助けでも大歓迎です!

4

1 に答える 1