What is the WPF XAML Data Binding equivalent of String.Format?

前端 未结 5 1602
半阙折子戏
半阙折子戏 2020-12-05 00:13

Or, to be more clear, how can I format a block of text (in my case, to be included within a tooltip) such that some portions of the text come from bound values.

In p

5条回答
  •  独厮守ぢ
    2020-12-05 00:58

    If you're using 3.5 SP1, Aku's answer is the way to go. If you're not, you can use the FormatConverter from my WPF Converters library.

提交回复
热议问题