Im building my first app with Xamarin and im trying to bind a Label to a viewModel like this:
.xaml
<Label x:Name="lbl_WelcomeMessage" HorizontalOptions="Center"/>
Viewmodel
class LoginModel
{
public string username { get; set; }
public string password { get; set; }
public Label welcomeLabel { get; set; }
public ICommand loginCommand { get; set; }
public LoginController()
{
loginCommand = new Command(Login);
}
}
I succeeded in binding the text properties of the entries, but is it possible to bind the label with name "lbl_WelcomeMessage" to welcomeLabel?