Hi,
I have a question about the scrolling of the Xamgrid.
when I scrolling the Xamgrid,I should do anything about the Vertical change.
For example,Console.WriteLine the Vertical Position of the Xamgrid,etc.
(1)When the Xamgrid Scrolling, some event are accured?
(2)How can get the Vertiacal Position when scrolling?
can anyone help me?thanks very much.
Hello Tei,
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 handled the XamGRid’s Loaded event and in the handler I get the vertical ScrollBar and handled its ValueChanged event. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi, Stefan.
Perfect. Thank you verymuch.
but I have another question on this topic.
Can the xamGrid scrolled in code, something like xamGrid1.ScrollToHorizontalOffset(500)?
ps.the ScrollBar can be scrolled in code but not xamgrid.
Thank you.
After some investigation, our developers said that this behavior could be changed, but will decrease the performance of the XamGrid, so they decided to leave it this way. They also provided a workaround if still want to be able to scroll the XamGrid in code. I attached a sample project showing this. Basically you should call the RowsPanel's ResetRows method every time the Scrollbar's ValueChanged event is fired.
Hope this helps you.