2013-05-27 1 views
1

WPF 툴킷을 기반으로하는 여러 개의 시계열 차트로 작업하고 있습니다. 예를 들어 한 차트의 온도, 이슬점 및 압력의 시계열WPF 툴킷, 여러 라인리스트 간의 공유 툴팁

특정 데이터/시간에 대한 계량 매개 변수의 요약을 툴팁 프레임에 표시하려면 툴팁을 공유해야합니다.

가능하다면 어떻게 할 수 있는지 알면 큰 도움이됩니다.

덕분에, PY

답변

0

BubbleDataSeries을 위해 내가 하나의 예를 가지고 당신의 시리즈의 DataPoints에 대한 Styles을 찾기 :

<Style x:Key="BubbleToolTipTemplate" TargetType="{x:Type c:BubbleDataPoint}"> 
    <Setter Property="Template"> 
     <Setter.Value> 
      <ControlTemplate TargetType="c:BubbleDataPoint"> 
       <Grid> 
        <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>