Pre loader

Problem with Tooltip Modifier going from version 3 to 4

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

In version 3, I had

<ControlTemplate x:Key="RolloverLabelTemplate" TargetType="s:TemplatableControl">
  <Border Background="#77FFFFFF"
                BorderBrush="{Binding Stroke,
                                      Converter={StaticResource ColorToBrushConverter}}"
                BorderThickness="2"
                CornerRadius="5">
    <!--<StackPanel Margin="5">
                <TextBlock FontSize="12"
                           FontWeight="Bold"
                           Foreground="{Binding Stroke,
                                                Converter={StaticResource ColorToBrushConverter}}"
                           Text="{Binding SeriesName}" />
                <TextBlock FontSize="11"
                           Foreground="{Binding Stroke,
                                                Converter={StaticResource ColorToBrushConverter}}"
                           Text="{Binding Value}" />
            </StackPanel>-->
  </Border>
</ControlTemplate>

  <s:ModifierGroup>
      <s:RolloverModifier x:Name="rolloverModifier"
                                    LineOverlayStyle="{StaticResource RolloverLineStyle}"
                                    DrawVerticalLine="True"
                                    SourceMode="AllSeries"
                                    ShowTooltipOn="MouseLeftButtonDown"
                                    TooltipTemplate="{StaticResource RolloverLabelTemplate}"
                                    ShowAxisLabels="True" />
      <s:SeriesSelectionModifier ReceiveHandledEvents="True" />
    </s:ModifierGroup>

In Version 4, I get the error on the
 TooltipTemplate="{StaticResource RolloverLabelTemplate}"

An object of the type "System.Windows.Controls.ControlTemplate" cannot be applied to a property that expects the type "System.Windows.DataTemplate".

Could I get some help on this please?

Thanks,
-Robert
  • You must to post comments
0
0

Solved this.
The SciChart WPF v4 SDK Documentation.docx was helpful.

Thanks,
Robert

  • Yuriy Zadereckiy
    Hi Robert, we are glad the issue has been sorted out! Please feel free to ask if there are any more migration issues.
  • You must to post comments
0
0

I have the same issue… where do I find that document?

Lisbeth

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies