I would like to show the Y values of the slice on a special panel. So far I have not yet found out how to disable the tooltips that appear next to the annotation line. I have tried to add a ToolTipOpening handler to the anntotated line, to the modifier and to the chart surface but it does not get called.
What should I do?
- Kristjan Sander asked 9 years ago
- last edited 2 years ago
- You must login to post comments
Hi there,
You could disable the tooltips by setting the TooltipLabelTemplate property to an empty ControlTemplate.
Also the same effect can be achieved using some workarounds, like setting the SourceMode to “SelectedSeries”, in this case tooltips will appear on the selected series only (having IsSelected set to True) or setting ShowTooltipOn to “MouseMiddleButtonDown”.
Please let us know if the above helps,
Best regards,
Yuriy
- Guest answered 9 years ago
- You must login to post comments
Thanks, it most probably would. However, I already fell back to the regular VerticalLineAnnotation and OnMouseLeftUp:
private void verticalAnnotation_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
{
var i = mySeries.DataSeries.FindIndex(verticalAnnotation.X1, SearchMode.Nearest);
my_value.Text = Convert.ToString(MySeries.DataSeries.YValues[i]);
// snap to the nearest point
verticalAnnotation.X1 = Convert.ToDouble(TorqueSeries.DataSeries.XValues[i]);
}
That might have been the best thing to do anyway because there is actually little need for the VerticalSliceModifier if tooltips are eliminated. I am new to SciChart and have some trouble with picking the right tools.
- Kristjan Sander answered 9 years ago
-
Hi Kristjan, thanks for your answer. Plz take a look at me answer here: https://www.scichart.com/questions/question/is-this-customization-of-the-vertical-line-annotation-on-a-vertical-slice-modifier-possible#sabai-entity-content-8028 . Could you please tell us more about what you want to achieve so we can suggest something to you?
- You must login to post comments
Please login first to submit.