This question is locked. New answers and comments are not allowed.
Hi,
I integrate RadDataBoundListBox that implement DataVirtualizationMode="OnDemandManual" and implement inside it also, a ContextMenu with Opening events. Because Tap event is used for view detail of selecteditem in RadDataBoundListBox, then ContextMenu use Hold event to open it.
Question is, how to not trigger Hold event on contextmenu or not opening context menu only for load more button ?
Update :
Ok I found the way using this... button in xaml i name it contain string "LoadMore"
I integrate RadDataBoundListBox that implement DataVirtualizationMode="OnDemandManual" and implement inside it also, a ContextMenu with Opening events. Because Tap event is used for view detail of selecteditem in RadDataBoundListBox, then ContextMenu use Hold event to open it.
Question is, how to not trigger Hold event on contextmenu or not opening context menu only for load more button ?
Update :
Ok I found the way using this... button in xaml i name it contain string "LoadMore"
RadDataBoundListBoxItem item = e.FocusedElement as RadDataBoundListBoxItem;
Button b = item.ChildrenOfType<
Button
>().FirstOrDefault();
if (b.Name.Contains("LoadMore"))
{
e.Cancel = true;
return;
}