Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello
Can i force updating or modifying a UIElement without dispatcher invoking,
using another thread ??
Thanks
Posted

1 solution

Sort of. What you can do on some bindings is replace the value on the property that the binding is as a source. This will then update the binding's target property. If you are using WPF 3.5 or 4.0, you will always have to replace the complete value in the property. So, if that property is holding a collection, you have to replace the collection (not the items in the collect). If you mess around with the current collection, instead of replacing it, then you will get an exception. I've read that the new version of WPF lets you alter collections from a different thread, but I was using WPF 4.0 at work so I didn't want to get dependent on features it doesn't have, so I haven't tried that out.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900