How to display alert from ViewModel
问题 newbie here. I want to display alert from ViewModel . problem: The name DisplayAlert does not exist in the current context How to do that? Below is my code. -- XAML <Button x:Name="BtnLogin" Command="{Binding LoginCommand}" BackgroundColor="Green" TextColor="White" WidthRequest="150" HeightRequest="60" Text="Login" /> --- ViewModel : class LoginViewModel : ViewModelBase { private string _username; public string Username { get { return _username; } set { _username = value; OnPropertyChanged();