Search code examples
c#xamlxamarinpopupmultiline

Can you have more then one line in one DisplayAlert?


So i have this code and i was thinking about if you can have more then one line of text?

await DisplayAlert("Contact","Name: " + Contact.Fullname, "Close");

i allso want email and age to show


Solution

  • DisplayAlert("Contact","Name: " + Contact.Fullname + "\nAddress: " + Contact.Address + "\nEmail: " + Contact.Email + "\nAge: " + Contact.Age, "Close");