So, I have a text field with data binding to it, but I want to add static text to my xaml code.
<TextBlock Text="{Binding Preptime}"></TextBlock>
This will only show the number of minutes, I want it to display as: "Preparation time: 55 minutes"
public String Preparation { get { return "Preparation time: " + Preptime + " minutes"; } }
I know that I can use getter for this, which would be a clean solution, but should there be a way to write this directly to my xaml?
Thanks in advance!
c # data-binding
Glenn
source share