jFormattedTextField’s Formatter.setCommitsOnValidEdit(true) doesn’t work at first focus

Actually, setCommitOnValidEdit should work always as you expect (and does in the code snippet below), no need for a DocumentListener, after all, the method is exactly for that purpose. So I suspect something else is wrong in your context. Or for some reason the very first edit isn’t parsed to anything valid? NumberFormatter numberFormatter = … Read more

In WPF, why doesn’t TemplateBinding work where Binding does?

Found this forum post on MSDN: http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/0bb3858c-30d6-4c3d-93bd-35ad0bb36bb4/ It says this: A TemplateBinding is an optimized form of a Binding for template scenarios, analogous to a Binding constructed with {Binding RelativeSource={RelativeSource TemplatedParent}} Note from OP: Contrary to what it says in the documentation, in actuality, it should be this… {Binding RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay} I filed a … Read more