Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9016439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:59:46+00:00 2026-06-16T03:59:46+00:00

I have my own stack/navigation model, but I would like to have the standard

  • 0

I have my own stack/navigation model, but I would like to have the standard Back button appear beside the header of my page.

What code do I need to make it appear?

The examples just do something like this:

    void Header_Click(object sender, RoutedEventArgs e)
    {
        // Determine what group the Button instance represents
        var group = (sender as FrameworkElement).DataContext;

        // Navigate to the appropriate destination page, configuring the new page
        // by passing required information as a navigation parameter
        this.Frame.Navigate(typeof(GroupDetailPage), 
            ((SampleDataGroup)group).UniqueId);
    }

and it automatically shows up.

I’ve looked through various msdn pages but they mostly talk about the design pattern.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:59:48+00:00Added an answer on June 16, 2026 at 3:59 am

    In the Visual Studio project templates (aside from Blank App), you’ll see the following XAML in the page

    <Button x:Name="backButton" Click="GoBack" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Style="{StaticResource BackButtonStyle}"/>
    

    so the visibility of the button is driven by whether or not there’s a backstack for the application, and pageRoot here is the x:Name associated with the given Page.

    Note, that the GoBack method is part of the LayoutAwarePage that you get for all of the templates other than the blank one. It sounds like you have your own version of “LayoutAwarePage” in which case you’ll have to wire up whatever code makes sense to execute on a back button for your navigation model.

    Keep in mind that LayoutAwarePage will the basis for a LOT of Windows Store applications, so if you deviate too much from that de facto default navigation scheme, you might confuse your users that are used to behavior in other applications. Would it make sense to extend from LayoutAwarePage perhaps, in which case you’ll get the default behavior (including the Back button) and then you can add your own special sauce on top?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have own project and i would like add for this class same as
I would like to make every EditText object have own title like in Pure
I have own component which works in my testing winform app good but when
I want to have a method called when the user clicks the back button
Hello Stack Overflow community, I'm a rather novice coder, but I have a project
I have a custom navigation implemented but I have a problem. After I pop
I have four DIV elements on my page. Each has it's own array which
I want to create a layout like the User page on Stack Overflow where
I have a page with internal navigation. That means that I show some list
I'm new to this sort of thing, but I would like to create a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.