Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
141902 | Jan 10,2019 12:28 AM UTC | Jan 11,2019 01:12 PM UTC | WPF | 1 |
![]() |
Tags: SfSchedule |
private object GetCustomAppointment(object originalSource)
{
var selectedAppointment = (originalSource as FrameworkElement).DataContext as ScheduleAppointment;
var recurringAppointment = schedule.Appointments.FirstOrDefault(appointment => appointment.IsRecursive && appointment.RecurrenceID == selectedAppointment.RecurrenceID);
var source = (IEnumerable<object>)schedule.ItemsSource;
if (recurringAppointment != null)
return source.FirstOrDefault(x => x.GetHashCode() == (int)recurringAppointment.ObjectID);
return null;
} |
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.