i have listview shows products in shopping cart. datatemplate defines increment , decrement amount button each product.
if user wants tap 1 of these buttons, there's chance tap next button, itemclick event triggered. want disable itemclick in area of button. had idea position itemclick event occurred, , determine if it's in disabled area defined.
is possible? other idea?
there's simple way this. use element "disabled area" around these increment/decrement buttons. in itemclick handler, if (e.originalsource == **the element disabled area**) return;.
this works, because itemclickedeventargs routedeventargs contains element originated from. see https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.itemclickeventargs
Comments
Post a Comment