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

后端 未结 5 1297
甜味超标
甜味超标 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条回答
  •  旧时难觅i
    2021-01-04 14:41

    Sadly this is (to my knowledge) not possible. One possible workaround would be programmatically creating such a style on the fly, that could be encapsulated in a MarkupExtension which takes the path as constructor parameter.

提交回复
热议问题