c# - Trying to call child's event without calling parents event -
i have usercontrol embedded in control. both of these control have mouseup events hooked when press usercontrol, automatically parent control mouseup event fired. how can stop this?
the mouseup
event has bubbling routing strategy, means bubble descendants ancestors. stop propagation, mark event handled in child's event handler:
e.handled = true;
you can learn more event routing strategies on msdn.
Comments
Post a Comment