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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -