开发者

Can a value converter execute on different thread?

开发者 https://www.devze.com 2023-04-11 03:43 出处:网络
If my Binding.IsAsync = true, then why doesn\'t my ValueConverter execute on the same\"supposingly non-UI\" thread? 开发者_开发技巧

If my Binding.IsAsync = true, then why doesn't my ValueConverter execute on the same "supposingly non-UI" thread?

开发者_开发技巧

Is there any way to make it execute on that thread?


The documentation for IsAsync suggests that only your property accessors will be called asynchronously. No mention of converters is made that I can find. I'm not entirely sure whether this is because it's technically not possible to call the converter on the BG thread, or perhaps it was overlooked. It seems to me that it should be possible.

As a workaround, can you move any heavy logic being performed by your converter into the property, or perhaps into a separate property altogether?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号