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
40
GridViewPanelFlat.MeasureOverride(Size availableSize) shown as Expensive call in profiler
posted

Hi,

I am suing following env & control in my application: 

InfragisticsWPF3*.v11.1,.NET framework 3.5, WPF , C#, XP

Control : xamdatagrid

as shown in attached screenshot, GridViewPanelFlat.MeasureOverride(Size availableSize) shown as expensive call and in HOT category.

would like to know - 

- Why this call is costly, what is call stack for this method

- Is there any alternate way or workaround to avoid calling this method?

I follow optimization guidelines provided on following link.

http://es.infragistics.com/community/blogs/kiril_matev/archive/2010/10/26/optimizing-xamdatagrid-performance.aspx

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I can say that MeasuceOverride method is derived from the FrameworkElement and is used for measuring the size and positioning of the children of an element. It is expected for the method to use CPU time, since it is responsible for rendering the records and the cells of the XamDataGrid. Also the MeasureOverride method is not explicitly called by the code of the  XamDataGrid. It is derived method that is called when an element needs to render its children, so we cannot control when the method will be called.

     

    Hope this helps you.

Children