Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150519 | Jan 9,2020 02:31 PM UTC | Jan 15,2020 07:24 AM UTC | Xamarin.Forms | 5 |
![]() |
Tags: SfSchedule |
[C#]
schedule.CellTapped += Schedule_CellTapped;
private async void Schedule_CellTapped(object sender, CellTappedEventArgs e)
{
if (e.Appointment != null && schedule.ScheduleView == ScheduleView.DayView)
{
await App.Current.MainPage.DisplayAlert("", "Day view appointment tapped", "Okay");
}
else if (e.Appointments != null && schedule.ScheduleView == ScheduleView.MonthView)
{
schedule.ScheduleView = ScheduleView.DayView;
}
} |
[C#]
private void Schedule_CellTapped(object sender, CellTappedEventArgs e)
{
if (e.Appointment != null && schedule.ScheduleView == ScheduleView.DayView)
{
// Here, appointment class is Meeting.
var ID = (e.Appointment as Meeting).ContactID;
}
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.