Wizard Page Drawing slow

Wizard for WPF Forum

Posted 13 years ago by Pat Maneely - Software Engineering Manager, Cobham Aerospace
Version: 11.1.0545
Avatar
I have a Wizard that has a number of pages that contain PropertyGrid. When the Wizard is initially displayed, the first page loads very slowly - to the point that I can see what appears to be an uninitialized PropertyGrid being display. The uninitialized PropertyGrid is replaced with the correct display in about 2-3 seconds.

This particular Wizard doesn't have an Exterior Page - Could that cause problems?


Is there a way to delay the displaying of the page until its completely initialized/built?

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Pat,

The PropertyGrid runs asynchronously by default, with regards to building up the list of "items" or properties. The UI portion cannot be done on a separate thread, and is what takes the most time. You can set PropertyGrid.IsAsynchronous to false to disable this feature, but your best bet would probably be to enable virtualization. Please see our "Optional Optimizations" topic in our help file for more information.


Actipro Software Support

Posted 13 years ago by Pat Maneely - Software Engineering Manager, Cobham Aerospace
Avatar
I did the following:
IsAsynchronous="False"
VirtualizingStackPanel.IsVirtualizing="True"
VirtualizingStackPanel.VirtualizationMode="Recycling"
AreDefaultColumnsResizable="False"


The only thing that had any effect was the IsAsynchronous="False". It did improve the load performance.
Unfortunately it caused all those Binding Expression errors that you said were a timing issue and also caused the window to resize everytime the page was switched making it display slowly and choppy.

Any other ideas?
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Pat,

Unfortunately, virtualization does result in more of those binding errors, but those should not be an issue in release builds.

As for the sizing issue, you may need to use a fixed height or width, but that depends on your setup. If you can please put together a small sample project that reproduces your issue and email it over then we can take a closer look. Be sure to remove any executables or change the extension of the zip file to ensure it gets past our email filters.


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.