Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF Databound Label Design Time Text

Tags:

wpf

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

like image 329
Tom John Avatar asked Oct 24 '11 14:10

Tom John


1 Answers

Try this:

<Label Content="{Binding Name, FallbackValue='Text'}" />          
like image 60
Fischermaen Avatar answered Sep 19 '22 12:09

Fischermaen