In WPF Binding.Mode
, when selecting Default, it depends in the property being binded.
I am looking for some list or some convention or any information for the defaults for the various controls.
I mean, what properties are TwoWay
by default and so on.
Any links, ideas, thoughts and even rants are welcommed!
Source: http://blogs.msdn.com/wpfsdk/archive/2006/10/19/wpf-basic-data-binding-faq.aspx
The safest way would be to always be explicit what kind of binding mode you want from a binding.
Was looking for a list as well, mostly to find out which bindings could be set to one-way to improve performance. The following functions can help you find which controls use two-way binding by default:
Using a print function, gives us a list:
Sample result (control properties with two-way binding as default)
Interestingly, most controls have a TextSearch property which has two-way binding.
Here's a way to find the Default mode supported by a DP -
Taken from Bea Stollnitz's post : How can I update an explicit binding within a template?
Although having some kind of list of important DP's would be very helpful.