Tom John
Tom John

Reputation: 784

WPF Databound Label Design Time Text

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

Answers (1)

Fischermaen
Fischermaen

Reputation: 12468

Try this:

<Label Content="{Binding Name, FallbackValue='Text'}" />          

Upvotes: 18

Related Questions