Supposing that I have two TextBlock elements, one being a label for the second, which is bound:
<TextBlock Margin="0,0,0,0" Text="Notes:" />
<TextBlock Margin="50,0,0,0" Text="{Binding Path=notes}" />
I only want these two TextBoxes to appear if notes!="", that is only if there is something to display. How would one go about this?
Thanks.
First create a converter:
Then reference it (you can do this in your App resources, in the view resources, etc:
Then use it in your controls: