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

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

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

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