Page view counter
is it possible to call multiple functions on same event like, is it possible MouseEnter="onMouseEnter;onMouseClicked" ? Subscribe to this thread
Last post 08-28-2007 11:08 AM by Dave Britton. 2 replies.
Sort Posts:
08-28-2007 2:25 AM
is it possible to call multiple functions on same event like, is it possible MouseEnter="onMouseEnter;onMouseClicked" ?

 can anybody tell me in urgents

is it possible to call multiple functions on same event like

is it possible MouseEnter="onMouseEnter;onMouseClicked"  ?

please reply with solution 

(If this has answered your question, please click on "Mark as Answer")
Thanks & Rgds,
Suyog Kale
Senior Software Engineer
************************************************************

suyog kale

Loading...
Joined on 08-02-2007
pune-india
Posts 98
08-28-2007 10:59 AM
Re: is it possible to call multiple functions on same event like, is it possible MouseEnter="onMouseEnter;onMouseClicked" ?

I don't believe there is any way to do it declaratively in your XAML.  However, I know that in 1.1, you can wire multiple methods to a single event in the code-behind:

object.MouseLeftButtonUp += new MouseEventHandler(method1);

object.MouseLeftButtonUp += new MouseEventHandler(method2);

So, I imagine you can probably do the same thing in javascript in 1.0.

jasonxz

Loading...
Joined on 04-17-2007
Arlington, TX
Posts 526
08-28-2007 11:08 AM
Re: is it possible to call multiple functions on same event like, is it possible MouseEnter="onMouseEnter;onMouseClicked" ?

 Yes - You can simply add multiple delagates as follows:

var media = rootElement.findname("media");

media.addEventListener("MediaEnded", Silverlight.createDelegate(this, this.handleMediaEnded));

media.addEventListener("MediaEnded", Silverlight.createDelegate(this, this.handleMediaEnded2));

 - Dave

Senior Engineer/Dev Manager, Vertigo Software
Vertigo

Dave Britton

Loading...
Joined on 06-27-2007
San Francisco Bay Area
Posts 229
Microsoft Communities