Hi
Shashanka,
Thanks
for using Syncfusion product.
As
of now we don’t have any direct support to differentiate the ContextMenuOpening
parameters when clicking in AllDay location .But your requirement can be
achieved by using CurrentEventArgs parameter in the ContextMenuOpening event
.Please find the below code snippet.
C#
private
async
void
schedule_ContextMenuOpening(object
sender, Syncfusion.UI.Xaml.Schedule.ContextMenuOpeningEventArgs
e)
{
var
originalSource = e.CurrentEventArgs.OriginalSource;
var
allDayItemsControl = (originalSource as
FrameworkElement).FindParentElementOfType<ScheduleAllDaysAppointmentItemsControl>();
bool
isAllDayClicked = allDayItemsControl != null;
if
(isAllDayClicked)
{
MessageDialog
msgDialog = new
MessageDialog("This
is AllDay");
await
msgDialog.ShowAsync();
}
} |
We
have created simple sample based on your requirement, Please find the sample in
the below link.
Sample
Link: AllDay_ContextMenu
Please
let us know if you have any concerns
Regards
Vigneshkumar
R