Can I change the properties of a binding in a DataTrigger, without knowing the binding itself?

后端 未结 5 1270
甜味超标
甜味超标 2021-01-04 13:50

I have a TextBox style that formats a number if the box is unfocused, but leaves the number unformatted whlie it\'s being edited.

This is the style I wa

5条回答
  •  时光说笑
    2021-01-04 14:36

    The only option I see there would be to create an attached property for the StringFormat and use a multiBinding.

    Not quite what you wanted, but close enough, I guess...

    you have more info on this (kind of duplicate) question on S.O.:

    Modifying the Parameters of a TextBox's Text Binding through the use of a Style

提交回复
热议问题