WordPress database error: [INSERT, UPDATE command denied to user '51213-2'@'10.10.20.130' for table 'wp_options']INSERT INTO `wp_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_doing_cron', '1714279014.1111629009246826171875', 'yes') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)
<\/a><\/span><\/p>\n WPF is really awesome to build reactive applications and data binding is here to push useful information inside of the User Interface. All is done magically and it’s wonderfully simple to create an application without knowledge of the internals of the WPF’s rendering.<\/p>\n Now, I wan’t to talk about something which can useful in every WPF application : how to wait for the rendering UI to be done<\/strong>. This can also be rephrased to : “how to force the rendering after I performed an action ?<\/em>“<\/strong>.<\/p>\n <\/p>\n You can find a lot of reasons<\/span> to need this:<\/p>\n Here is a non-exhaustive list of things that can only be done on the UI-Thread and which are time-consuming (if you have some others, please give me them in the comments):<\/p>\nWhy would I need this ?<\/em><\/h4>\n
\n
You are adding a lot of items to a binded collection and you want to wait for the rendering of each added item to be done. By doing this, the data won’t seems to be push into the ItemsControl by packet but one by one. No apparent freeze of the UI.<\/del> As pointed out by a lot of people, there is really better ways to do this.<\/li>\n<\/ul>\n\n