Hi All,
Does anyone know if it's possible to change the font and font colour of the MoreIndicatorText ("more..." by default)?
My problem is the chart could have a Black background which will make the MoreIndicatorText invisible...
Cheers,
Richard
Hello Richard,
To the best of my knowledge there is no exposed property for the MoreIndicatorText text appearance.
You may want to submit this as a feature request on this link.
Hi Alex,
That's a shame. Many thanks for your response though. I've submitted a feature request as you've suggested.
you could also use the FillSceneGraph event to find the Text primitive for the more indicator, and change the font color in code.
(Infragistics) David Negley said: you could also use the FillSceneGraph event to find the Text primitive for the more indicator, and change the font color in code.
Hi David,
Thanks for the suggestion! I had a look and I've established the MoreIndicatorText's primitive is an item in the SceneGraph collection object, but as it's simply an indexed array I'm unable to establish a stable way of obtaining that object...
The best way I can see so far would be to check for the "more..." text, but (although very unlikely) if a chart were to have a value in the graph that is labelled "more..." for whatever reason this obviously cause a problem...
Any suggestions?
Does anyone have any more information on determining the Text primitive for the more text indicator in the FillSceneGraph event?
Great, thanks!
that is a safe assumption.
Thanks, David! That worked a treat. I noticed the MoreIndicator text always seems to be near the end of the collection of primitives. Can we further presume that the MoreIndicator text will always be the last "more..." primitive?
you're correct in your observation that there isn't much to distinguish the "more" label in the SceneGraph. you could use the Path as well as the Text string, but this could still be a false positive in the unlikely event that you have "more..." as one of your row labels.
void ch_FillSceneGraph(object sender, FillSceneGraphEventArgs e)
{
foreach (Primitive p in e.SceneGraph)
Text t = p as Text;
if (t != null && t.Path == "Border.Title.Legend" && t.GetTextString() == "more...")
t.labelStyle.FontColor = Color.OrangeRed;
}