WPF Performance Degradation During UI Render -


i have following components in wpf application:

(1) window

(2) contentpresenter in window bound property in underlying viewmodel. property references viewmodel.

(3) datatemplate viewmodel bound contentpresenter referenced above. data template instantiates third-party grid displays data.

whenever contentpresenter renders data datatemplate, takes approximately 3 4 seconds ui render. causes ui hang duration of time takes render content. since have little no control on how third-party control renders - question involves whether or not possible render content in way ui not hang.

please advise.

thanks.

chris

how many rows grid displaying? , how many of rows visible on screen?

i'm asking because it's possible you've got ui layout defeats virtualization. usually, controls show scrollable list of data perform virtualization. (the built-in listbox this, , 3rd party grid of tolerable quality should same.) critical performance, because means ui needs instantiate items visible, rather in list.

but it's relatively easy defeat virtualization accident. 1 way wrap list or grid control in scrollviewer. need virtualizing controls able manage own scrolling virtualization work, scrolling needs happen on inside. wrapping control in scrollviewer prevents doing own scrolling. way can go wrong if plug in different itemspanel. third possibility list/grid control needs told use virtualization.

but if you're using control takes long time render stuff need show on screen, there's not can - you'd need contact control vendor, or consider using different vendor...


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -