vb.net - vb.wpf user control event not triggered in another user control -


i have application contains user control (navigationbar) public events. in same application have other user controls use navigationbar , subscribe it's events, never triggered.

if change navigationbar events "shared", trigger in user control, since need several instances of navigationbar in application, not possible.

here navigationbar user control event declaration public class navigationbar

public event beforesaveitems routedeventhandler protected sub onbeforesaveitems(sender object, e routedeventargs)     raiseevent beforesaveitems(sender, e) end sub ... end class 

in user control - here subscribe event:

public navbaroverstock navigationbar navbaroverstock = new navigationbar addhandler navbaroverstock.beforesaveitems, addressof navbarbeforesave  public sub navbarbeforesave(sender object, e routedeventargs)     msgbox("overstock before save") end sub 

i can interrupt code , see raiseevent beforesaveitems called, event never triggered in user control.

can tell me wrong?

-rick


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -