Setting value of the MajorDivTickStyle property prevents axis wheel zooming
Posted: Mon Mar 18, 2024 4:56 pm
Hi,
I found a strange behaviour which I also can reproduce with your official examples:
I want to zoom by mouse wheel when cursor is over the axis, therefore I set in xaml:
After that I wanted to set the color of the MajorDivTickStyle property also in xaml:
Now the axis wheel zooming stopped working. It's also impossible to pan the axis anymore when mouse cursor is over the axis.
Interestingly when I set the color of the MajorDivTickStyle property in code behind like this, axis wheel zooming still works:
Seems like a bug?
I found a strange behaviour which I also can reproduce with your official examples:
I want to zoom by mouse wheel when cursor is over the axis, therefore I set in xaml:
Code: Select all
<lcusb:ViewXY.ZoomPanOptions>
<lcusb:ZoomPanOptions AxisWheelAction="Zoom"/>
</lcusb:ViewXY.ZoomPanOptions>
Code: Select all
<lcusb:AxisX.MajorDivTickStyle>
<lcusb:AxisTickStyle Color="Black"/>
</lcusb:AxisX.MajorDivTickStyle>
Interestingly when I set the color of the MajorDivTickStyle property in code behind like this, axis wheel zooming still works:
Code: Select all
AxisX.MajorDivTickStyle.Color = Colors.Black;