Hello,
Based on a previous answer I have received, I was told that I can add a ContextMenu to an Axis by setting the LabelPanelStyle. That worked great for regular numeric axes.
When I do the same for a Polar Axis, it also works, but it covers the entire area of the chart, so things like the crosshair don't work anymore (probably because the panel I added is on top).
Is there a workaround for this issue?
Thank you.
Regards,
Sebastian
Hi Sebastian,
You are correct. Because the axis panel is rendered on top of the chart and because it has a Background set (by the LabelPanelStyle) the mouse events can't reach the plot area so the crosshair doesn't show up. You could get the crosshair to show up if you set the Background to null but then the ContextMenu would no longer work. For these angle axis I think it's better that you place the ContextMenu on the whole XamDataChart itself. Since the angle axis already covers the whole chart, placing the context menu on the XamDataChart will visually produce the same behavior as before, only now it will allow you to use the crosshair.