locked
BackButton is disabled too soon RRS feed

  • Question

  • Back button is not working for me. in Charm search I am pulling data from WCF then I am displaying data in Gridview and immediately BackButton is disabling

    This is my button declaration in xaml

    <Buttonx:Name="backButton"TabIndex="0"Click="GoBack"IsEnabled="{BindingFrame.CanGoBack,ElementName=pageRoot}"Style="{StaticResourceBackButtonStyle}"Grid.Row="0"/>

    Tuesday, August 27, 2013 6:23 PM

Answers

  • Your BackButton's IsEnabled state is bound to the pageRoot's CanGoBack property.

    If you didn't get to the page via Frame.Navigate() then there is no backstack to go back through. To what page do you expect the user to go back to? From your description it sounds like this occurs on the initial jump into the app from the search contract.

    --Rob

    Tuesday, August 27, 2013 9:09 PM
    Moderator