I'm new to Xamarin and i just can't wrap my head around the timepicker, datepicker or picker. I can get the functionality to work in the app i'm playing around with, but how do i pass that information to say an email all the other form entrys i have works well, just not the pickers.
i have this for time in xaml file:
i need to be able to pass that information selected to an email
here is the CS file
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class FromAirport : ContentPage
{
public FromAirport()
{
InitializeComponent();
}
private void DatePicker_DateSelected(object sender, DateChangedEventArgs e)
{
}
private void Button_Clicked(object sender, EventArgs e)
{
var emailMessenger = CrossMessaging.Current.EmailMessenger;
if (emailMessenger.CanSendEmail)
{
var emailWithHtmlBody = new EmailMessageBuilder()
.To("")
.Subject("From Airport Reservation")
.BodyAsHtml(htmlBody: "<b>Name: </b>" + Name.Text + "<br/><b>Address: </b>" + Address.Text + "<br/><b>Email: </b>" + emailAddress.Text + "<br/><b>Pickup Date: </b>" + PickupDate.Text + "<br/><b>Pickup Time: </b>" + PickupTime.Text + "<br/><b>Pickup Location: </b>" + PickupLocation.Text + "<br/><b>Phone: </b>" + PhoneNumber.Text + "<br/><b>Drop Off Location: </b>" + DropOff.Text + "<br/><b>Passengers: </b>" + Passengers.Text + "<br/><b>Bags: </b>" + Bags.Text + "<br/><b>Airline: </b>" + Airline.Text + "<br/><b>Flight Number: </b>" + FlightNumber.Text + "<br/><b>Comments: </b>" + Comments.Text)
.Build();
emailMessenger.SendEmail(emailWithHtmlBody);
}
}
}
}
Any help would be appreciated.... like i said i can view the picker and it will operate but no data moving to email..
thank you.