Template10 icon indicating copy to clipboard operation
Template10 copied to clipboard

BackButtonBehavior not working properly after updating from 1.0.8 to 1.1.11

Open DanTheManSWE opened this issue 10 years ago • 2 comments

I've been using BackButtonBehavior to go to a different visual state, but after updating to 1.1.11 it's not working any longer.

So basically what happens is that when I click a listitem, it goes to DetailVisualState, In that state a button in the AppBar is enabled, called AppBarBackButton. BackButtonBehavior is bound to IsEnabled of AppBarBackButton. Pressing the AppBar button works fine, but when pressing backbutton nothing happens.

<Behaviors:BackButtonBehavior Handled="{Binding IsEnabled, ElementName=AppBarBackButton}">
                <Core:GoToStateAction StateName="ListVisualState" />        </Behaviors:BackButtonBehavior>

DanTheManSWE avatar May 31 '16 07:05 DanTheManSWE

The issue seems to be isolated to GoToStateAction. I can still call a method with CallMethodAction.

DanTheManSWE avatar Jun 01 '16 08:06 DanTheManSWE

Ok, So I guess something changed in GoToStateAction, when I added TargetObject it's working fine: TargetObject="{Binding ElementName=ThisPage, Mode=OneWay}"

DanTheManSWE avatar Jun 01 '16 08:06 DanTheManSWE