So, I am attempting to open an email interface when a user clicks on the 'StyledStringElement' - To do this I have been calling the tapped event yet I have gained the error -
"Error CS1502: The best overloaded method match for `MonoTouch.Dialog.Section.Add(MonoTouch.Dialog.Element)' has some invalid arguments (CS1502)"
and
"Error CS1503: Argument
#1' cannot convertvoid' expression to type `MonoTouch.Dialog.Element' (CS1503)"
The code I am using is -
section.Add(new StyledStringElement("Contact Email",item.Email) {
BackgroundColor=UIColor.FromRGB(71,165,209),
TextColor=UIColor.White,
DetailColor=UIColor.White,
}.Tapped += delegate {
MFMailComposeViewController email = new MFMailComposeViewController();
this.NavigationController.PresentViewController(email,true,null);
});
What is causing this error and how can I fix it?