Hi All,
I have a question about the xamdayview in wpf, when you click in the all day event area(MultiDayActivityArea) it raises the SelectedTimeRangeChanged event and when you click on the actual diary(timeslotpresenter) it raises the same event. Is there any way of knowing where this event was raised from? The only difference when the dialog loads is that the all day event flag is ticked. I need to know what it checks to determine all day event.
kind regards,
Anne
Hello Anne,
Were you able to resolve your issue?
Sincerely,Valerie Developer Support Supervisor - XAMLInfragisticswww.infragistics.com/support
You can check if the new date range is a day to know which area was clicked. For example:
private void XamScheduleView_SelectedTimeRangeChanged(object sender, Infragistics.Controls.NullableRoutedPropertyChangedEventArgs<Infragistics.DateRange> e)
{
DateRange dr = e.NewValue.Value;
double days = (dr.End - dr.Start).TotalDays;
if (days == 1)
System.Diagnostics.Debug.WriteLine("MultiDayActivityArea clicked");
else
System.Diagnostics.Debug.WriteLine("timeslotpresenter clicked");
}
Please let me know if you have any questions.
Sincerely,
Valerie
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
As an addition to this I am looking for something like the GetTimeSlotFromPoint which comes with the windows control ultradayview..