OK, if i do that i can call event.cancel() wich stops it from changing.
My button that changes the stackpanel to the next stack uses the showWidget(int) method and when i call that it triggers the same event which is then cancelled. Is there a work around for this? I guess i could just put in a switch or something that would detect if it was a header click vs a button click?