This project has moved and is read-only. For the latest updates, please go here.

Question about line in TypeEditor.cs

Dec 10, 2014 at 5:41 PM
Not sure of the exact line number, but where the Binding object is created I see this line:

UpdateSourceTrigger = (Editor is InputBase) ? UpdateSourceTrigger.PropertyChanged : UpdateSourceTrigger.Default,

Meaning, all editor controls deriving from InputBase (like NumericUpDown) are set to push to their sources upon keystroke, etc., whereas things like TextBox use the default for that control type (e.g. FocusLost).

Any reason why this is here?

Dec 11, 2014 at 2:44 PM

Initially the UpdateSourceTrigger was set to UpdateSourceTrigger.Default (or LostFocus for TextBoxes). Some users wanted a live update for numericUpDowns, so we add the UpdateSourceTrigger.PropertyChanged for numericUpDowns, keeping the UpdateSourceTrigger.Default for others.

If you prefer to have UpdateSourceTrigger.PropertyChanged in all cases, you can change it.