Cursor Coordinate Graph - Box Position

Oct 3, 2009 at 1:27 AM

Hi Mikhail,

Is possible to have some property to set position, fonts, colors of the Horizontal and Vertical TextBlock in the CursorCoordinateGraph class?

This is useful if you have multiple InjectedPlotter and if you want show the cursor coordinate for each y-axis.

I have tried to change the source code in "CursorCoordinateGraph.xaml.cs" and I have added the following code:

public void SetBoxPosition(int nX, int nY, Brush oForeground, int nFontsize, FontWeight oWeight)

            blockShift = new Vector(nX, nY);
            this.vertTextBlock.FontSize = nFontsize;
            this.vertTextBlock.Foreground = oForeground;
            this.vertTextBlock.FontWeight = oWeight;


this code works fine if you want set position and other properties for vertTextBlock .

If you want I can send to you some screenshot to show you my idea.

Thanks for you great work.





Oct 14, 2009 at 2:45 PM

Hi Giancarlo,

I've almost got your idea, but a screenshot can really be helpful.