Hello,
I have a question about the Tooltip. Is it possible to add on the Marker a "Tooltip" that displayed permanently on the screen. I mean, you do not need to go over the "Marker" for displaying the Tooltip.
Thank you for your quick answer.
Markers are capable of displaying a text label. Let's say you have a series with a few points. If you want to set a marker with a label on one of them you can do something like this:
Marker marker = new Marker();marker.Type = MarkerType.Circle;marker.Format = "my marker";marker.LabelDistance = 1;series.DataPoints[1].Marker = marker;
Thank you for your quick response.
But, is-it possible to apply rotation on this label, wrapping the text?
In the futur, i would like to put image on this label. I guess that is not possible with this solution?
Another question, in your documentation, the properties "Format" is used for formating the string thanks to XAML Curly brace. But in your solution, this properties is used for customizing the text in the label...??? is it a workaround or is it describes in the documentation? Where can i find it in the documentation?
;-).
Thanks in advance.
Currently, the marker label cannot have text wrapping or rotation. You can, however, use a custom marker, for which you have to apply a marker template. The template can contain any combination of controls. Here's how to use custom markers:http://help.infragistics.com/Help/NetAdvantage/DV/2009.1/CLR3.5/html/SL_DV_xamWebChart_Using_a_Control_Template_to_Style_the_Marker.html
As for the format property, wer use the standard .net composite formatting. You can read more about it here:http://msdn.microsoft.com/en-us/library/txafckwd.aspx
You may have seen some format strings like "My Name Is: {0}" which will result in a static string followed by a formatted value. My example is the same, except there's no index component. I don't think there's any ambiguity, it's just a special case.
I mentioned a custom marker template in my previous post, have you tried it? I believe it's the only way to get other controls displayed as the point marker.
Tooltips cannot be permanently displayed.
Thank you for your response.
But about Format property, I already know it's a standart by Microsoft ;-). My question was about your exemple:
m.Format = "My Marker" ///Usually, This property is used for formating the text displayed in the label as describes in your documentation. but here, this property is used like "Content" property of button or "Text" property of Textblock. In this case, it 's an ambiguous name for this property ;-). This property has two roles: -Setting the text of the label. -Formatting the text in the label.
--------------------------------------------------------------------------------------------
I resume:
Presently, It's impossible to put on the Datapoint, a Label(different for each datapoint), which includes an image and "wrapped" Text. Nevertheless, I can use Tooltip, but It's not permanently displayed. Right ?
Thank you,
and sorry for my english :-(.