Reputation: 784
I am playing about with WPF and databinding a Label control's content:
<Label Content="{Binding Name}" />
This works a treat, however I'd like to get some text in there at design time so I can see the label. Anyone know how to do this, seems it should be simple.
Thanks
TJ
Upvotes: 8
Views: 2309
Reputation: 12468
Try this:
<Label Content="{Binding Name, FallbackValue='Text'}" />
Upvotes: 18