I have learned how to format strings in the content attribute of a label like this:
<Label Content='{Binding ElementName=theSlider, Path=Value}' ContentStringFormat='The font size is {0}.'/>
I want to do the same thing in a Setter but ‘ValueStringFormat’ doesn’t exist, what is the correct syntax to do what I want to accomplish here:
<DataTrigger Binding='{Binding Path=Kind}' Value='Task'> <Setter TargetName='TheTitle' Property='Text' Value='{Binding Title}' ValueStringFormat='Your title was: {0}'/> </DataTrigger>
Can you simply use the StringFormat property of the Binding itself?