I need to display a RadContextMenu when a user right-clicks on a pointmark on a line series. But the RadContextMenu always appears at (0,0), instead of the mouse-click location.
My ChartView has a LineSeriesDefinition that sets the PointMarkItemStyle as follows:
And the AveragePointMarkStyle is defined as follows:
This is all good, except that when I right-click on a point mark, the RadContextMenu opens in the (0,0) location of the screen, instead of where the right-click took place, which is unacceptable.
I tried adding
to the definition of the RadContextMenu. This causes the context menu to appear in the correct location, but it now contains no menu items because this somehow stuff up the ItemsSource binding - binding simply does not take place. And the documentation for the PlacementTarget property is really bad.
Is this possible to make this work properly (i.e. the context menu appears in the correct place AND the ItemSource binds correctly) in a templated scenario?