For this, You have to add one public property inside the your
ViewModel
and Implement
INotifyPropertyChanged
. And Lastly Bind that property to your
Label
control's
Content
property.
For example :
1) Inside the ViewModel add property:
private List<string> inputString = new List<string>();
public List<string> InputString
{
get
{
return inputString;
}
set
{
inputString= value;
RaisePropertyChanged("InputString");
}
}
2) Bind this property to LableControl :
<Label Content="{Binding Path=InputString}" />