Possible bug with mouse event on WPF chart [RESOLVED]

Oystein Bjorke 10 years ago 0
This discussion was imported from CodePlex

raphay wrote at 2013-06-13 11:06:

Hello everyone,

I am creating an application with Oxyplot, which is great, but i recently faced with a problem : when i have my chart empty of rectangle annotation the mouse event doesn't trigger at all (i can't zoom or pan even with the middle button, except from the axes mouse over event). I resolved it by adding a white rectangle annotation, but it seems a bit ugly...

I may have done something bad, but i hope there is better fix to this problem.

Have a nice day...

raphay wrote at 2013-07-04 14:17:

I found the problem, the backround was set to null, so the chart didn't handle the mouse events anymore...
<oxy:Plot Margin="0,0,4,0" Name="chart" Background="{x:Null}"/>
Regards