I have a button bar and I have a viewstack which is the
dataprovider for it. The problem is under one of the canvas's in
one part of the viewStack I change the state based on some
conditions. When I click on another button in the button bar and
then try to go back where I was it keeps the state where I last
was. I would like to return to the original state. Is there any way
to do this? Let me know if you need more info. Thanks.
Also, if you don't want the reset function to fire on every
change of the viewstack, you could add some additional logic to the
function to check if the selectedChild of the viewstack matches
your stateful canvas, and if so only enable the reset then when you
click back to it.