Hello,
I can't handle mouse events on AxisLabelPanel (HorizontalAxisLabelPanel). By default panels transparent for such input events and I can't set background of HorizontalAxisLabelPanel. I tried Background property directly and style with TargetType="HorizontalAxisLabelPanel" but everything is vain.
Could you help?
Infragistics team, could you please tell me how can I set background of axis?
Even when I override axis template like this:
<ig:CategoryXAxis.Template> <ControlTemplate TargetType="ig:Axis"> <Canvas x:Name="RootCanvas" Background="White"/> </ControlTemplate> </ig:CategoryXAxis.Template>
it applies to series area (series area became white) not to axis. I can't understand why.
Hello Dmitry,
Thank you for your email. I have been looking into your question and the Background of the axes panels is null by default, as you mentioned, and this causes the mouse events to not fire. What I can suggest is using the Loaded event of the XamDataChart to get the panels and set the Background to Transparent (instead of null) and also handle the events of the panels there. I am attaching a sample application that shows how you can handle the MouseMove events of the x and y axis panels.
Please let me know if I can assist you with anything else.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support