This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I am currently using property grid to bind to my workflow custom activities.I'm finding when I set my activity to the SelectedObject of the propertyGrid it is taking around .5 seconds and depending on how many properties I have on my activity it may take longer, it seems when calling BindObject on the selectedChanged is taking the bulk of the time. I was wondering if there is any way to do this in a seperate thread? Thanks, Justin |
|
|
It's not possible to do this on another thread because WPF objects have thread affinity. BindObject is probably not the real culprit here -- the time seems to be taken within the WPF measurement system, with the setting up of the grid rows, which has to happen on the UI thread. It's certainly something we'd like to look into further at some point, but it's one of those things that could take quite a bit of effort for uncertain results. Half a second does sound a bit longer than we typically see in our test environments though. How many properties do you have? |
|
|
I have about 20 properties but they are of custom types |
|
|
If you have time to put together a project that reproduces the delay you're seeing, I'd be interested in taking a look at it. (On a strictly no-promises basis I'm afraid!) You can zip up a project and attach it via the Options tab, or email it via the contact form if it contains sensitive info (please remove all binaries first). |
|