This project is read-only.

CoolMenu - MenuItemClicked Event Fires Twice (SilverlightContrib.Controls.dll - version 2009.1.0.0 on .NET 3.5/Silverlight 3)

Nov 18, 2009 at 9:53 PM

Has anyone else run into a problem with the CoolMenu "MenuItemClicked" event firing two times?

I've put the code below into the beginning MenuItemClicked event handler to prevent code from executing twice, but this is less than desirable.

I'm open to guidance, suggestions, etc. - I'm hoping it's a stupid error on my part, but it doesn't look that way...Thanks in advance - Troy

if(strPreviousMenuTag == e.Item.Tag.ToString())

{

<font size="2">

     strPreviousMenuTag = ""

</font>

;

     return;

}

else

{   

     strPreviousMenuTag = e.Item.Tag.ToString();

}

<font size="2">

 

 

</font>