Actions firing multiple times

Topics: Actions & Coroutines, Bugs
Nov 10, 2011 at 8:47 PM

I'm writing a Windows Phone application and came up against an issue involving Action binding and pages.  Suppose I have the following:

<Button Content="A button" cal:Message.Attach="[Event Tap] = [Action DoSomething]"/>

Elsewhere, I have a button that navigates to some other page. If I navigate to the other page, hit back, and then hit the button, DoSomething() fires twice.  Any idea what's going on?  I'd prefer not to have to do the wiring manually.

Nov 11, 2011 at 12:20 AM

Can you create a ticket for this and attach a simple solution that demonstrates the problem? Thanks.

Nov 11, 2011 at 7:20 AM

Sure. I'll get one up sometime this weekend.

Nov 23, 2011 at 2:43 AM
Edited Nov 23, 2011 at 2:53 AM

Well, I built a sample that should exhibit the solution and it doesn't.  Time to dive into my project's source and see if I messed something up.

Edit: Yup, found the problem.  I was being an idiot in my code.