Reputation:
How do I put new text to a label in xamarin.forms?
If I have this in XAML:
<Label Text="{Binding Nombre}" Font="Bold,16" x:Name="tNombre" TextColor="{StaticResource ColorBlanco}" Style="{StaticResource TextAligment}"/>
But to put the new text: how is it in code?: What do I have to use?... I am new in this.
Upvotes: 1
Views: 974
Reputation: 4156
The Label you show is bound to the Nombre field.
<Label Text="{Binding Nombre}"
As long as the class you are bound to implements the INotifyPropertyChanged interface changing the value for Nombre in the class you are bound to should update the UI
Upvotes: 0