c# - Handle Event in Notification Library -


i'm trying application features https://toastspopuphelpballoon.codeplex.com/ library.

i did fine simple toast w/o event handling, cant manage work of sample click , close events

as sample i'm trying simple demo documentation says https://toastspopuphelpballoon.codeplex.com/documentation

        var toast = new toastpopup(             "my title",             "this main content.",             "click hyperlink",             notificationtype.information);          toast.hyperlinkobjectforraisedevent = new object();          toast.hyperlinkclicked += this.toasthyperlinkclicked;         toast.closedbyuser += this.toastclosedbyuser;         toast.show(); 

and need use hyperlinkclicked event stuff...

i cant figure out how use event

i trying

    toast.hyperlinkclicked += new eventhandler(myevent_method); 

but vs keep throwing me errors, cant figure out how handle events using lib, need it.

hope help, thank you

the problem method myevent_method must have following signature:

void myevent_method(object sender, mantin.controls.wpf.notification.hyperlinkeventargs eventargs) 

make sure add handler as:

toast.hyperlinkclicked += new my_method; 

or:

toast.hyperlinkclicked     += new eventhandler<mantin.controls.wpf.notification.hyperlinkeventargs>(my_method); 

once right should work.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -