J.Jiang
J.Jiang

Reputation: 11

C# WPF textbox when binding data,how to add other strings in the Text property?

<TextBox x:Name="V2" Grid.Row="2" Grid.Column="8" Grid.ColumnSpan="3" Text="{Binding airPlane}".../>

In the above code, if I want to add more things in the "Text" property besides binding the airplane data, e.g. to add a unit called "Pounds", how to modify the code? Thanks!

Upvotes: 0

Views: 149

Answers (1)

Suren Srapyan
Suren Srapyan

Reputation: 68645

You can use Converters for it. For more see WPF Converters

Upvotes: 1

Related Questions