--
You received this message because you are subscribed to the Google Groups "magellan-friends" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magellan-frien...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi James,
I think should should remove the handler from the Navigated event in the handler itself. Not in the handler for the command. The command won’t be executed until a button is clicked or something similar. Your code should look more like this:
protected override void ViewAttached(object view)
{
Navigator.Navigated += Navigator_Navigated;
}
public void CmdNextExecuted()
{
// other code
}
private void Navigator_Navigated(object sender, EventArgs e)
{
Navigator.Navigated -= Navigator_Navigated;
// other code
}
Cheers,
Caleb