Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
405
Performance of xamgrid in scrollviewer
posted

Hello,

I am using the xamgrid inside a usercontrol that is a third party control we bought.

We noticed that the performance is terrible when we have many items.

Using Snoop we found out that this third party control uses a scrollviewer. When using a style we disabled the verticalvisibility of the scrollviewer then the performance of the xamgrid improved dramatically.

The thing is that we would like to keep the scrollviewer on the outer-third part control as Auto but also have the scrollviewer for the xamgrid.

Do you have any suggestion/sample code that shows the xamgridi performing well when placed inside a user control that uses a scrollviewer?

Thank you

Parents
No Data
Reply
  • 18204
    Suggested Answer
    Offline posted

    Hello,

    Thank you for posting in our forums!

    Since the ScrollViewer measures out infinitely, it will always force the XamGrid to render all records in the grid which bypasses any virtualization.

    You could continue to use the ScrollViewer while also setting the height of the XamGrid.  This would restrict the XamGrid's height to what you set and give you both the virtualization and the ScrollViewer.

    Please let me know if you have any further questions or concerns with this.

Children
No Data