Hi,
How can I change mouse wheel 3 line(default) to 1 line , I don't want that when I do mouse wheel, it goes down 3 line.
Do I make myself clearly? Sorry for my poor English...
Hello Charlie,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the ScrollViewer and handled its ScrollChnaged event and in the handler I change the vertical offset. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello Stefan,
Thank you for your answer,. I have studied your sample, it really worked. But I find it didn't work when I change the igDP:xamDataGrid to igDP:XamDataCards, could you please provide one sample using igDP:XamDataCards ? Thanks,Stefan.
I have modified the sample project following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Please see the attached file.
I have modified the sample, so now it works as you want. Basically I added two more checks to determine when the scroll comes to the bottom or top. Please let me know if this helps you or you need further assistance on this matter.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well. I also attached a sample using another approach. Basically I created a class that derives from CardViewPanel, then reimplemented the IScrollInfo members and called the LineUp, LineDown, etc members. I also created a class that derives from CardView and override the ItemsPanelType property to return the derived CardViewPanel.
Thanks Stefan. ^_^