Hi,
Does anyone know how I can access the CalendarItemArea visual region in the XamCalendar control?
Here is an example of what I am trying to do:
private void MonthlyView_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (Monthly.IsChecked.Value == true) { Point pt = e.GetPosition((UIElement)sender);
HitTestResult result = VisualTreeHelper.HitTest(???, pt)
e.Handled = true; } }
Thanks,
-Jeff
Hi Jeff,
Thank you for your reply. I am glad that you have managed to resolve your isseu.
I am all set now. Thanks for your help!
Hello Jeff,
I am just checking if you require any further assistance on the matter.
Thank you for your post. I have been looking into your question and you could access the ‘CalendarItemArea’ of the XamCalendar by using our Utilities class like e.g.:
private void xamCalendar1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
CalendarItemArea calendarItemArea = Infragistics.Windows.Utilities.GetAncestorFromType(e.OriginalSource as DependencyObject, typeof(CalendarItemArea), false) as CalendarItemArea;
}
Let me know, if you need any further assistance on this matter.