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

  • Home
  • SEARCH
  • 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 981657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:34:39+00:00 2026-05-16T04:34:39+00:00

I have three pages, and to navigate to each page, I’m binding a property

  • 0

I have three pages, and to navigate to each page, I’m binding a property to the Source property of the Frame. It works pretty fine if I just navigate the pages normally, but after calling the GoBack method, the Frame suddenly stopped working. If I set a uri to the Source property directly instead of using binding, it works fine though, I’m actually implementing using MVVM, so I don’t want to set the Source property directly.

–xaml–

  <navigation:Frame x:Name="_frame" Source="{Binding CurrentPage}"/>

–Code behind–

    Uri _currentPage;
    public Uri CurrentPage
    {
        get { return _currentPage; }
        set
        {
            _currentPage = value;
            if (PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs("CurrentPage"));
        }
    }

    // back
    private void Button_Click(object sender, RoutedEventArgs e)
    {
        if ( _frame.CanGoBack)
            _frame.GoBack();
    }

    // test1
    private void Button_Click_1(object sender, RoutedEventArgs e)
    {
        CurrentPage = new Uri("/TestPage1.xaml", UriKind.Relative);
    }

    // test2
    private void Button_Click_2(object sender, RoutedEventArgs e)
    {
        CurrentPage = new Uri("/TestPage2.xaml", UriKind.Relative);
    }

    // test3
    private void Button_Click_3(object sender, RoutedEventArgs e)
    {
        CurrentPage = new Uri("/TestPage3.xaml", UriKind.Relative);
    }

Does anyone know how to work around this problem? I’ve tried several ways, but nothing works for me.

Thanks in advance,
Yoo

  • 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-05-16T04:34:40+00:00Added an answer on May 16, 2026 at 4:34 am

    After testing for a while, I found a reason why it doesn’t work. The problem was that the binding to the Source property is dropped after calling GoBack for some reason. So if you want to do that, set the binding again programmatically like the following.

    _frame.SetBinding(Frame.SourceProperty, new Binding() { Source = this, Path = new PropertyPath("CurrentPage") });
    

    But you should consider when to set the binding again otherwise it doesn’t works properly.

    Yoo

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

Sidebar

Related Questions

I have implemented horizontal page view. One base page and three swipe pages. The
I'm playing with a GWT/GAE project which will have three different pages, although it
Say I have three separate color schemes that are used on various pages in
I have an activity with a view pager and three pages to display. When
I have three divs page-left page-right flipper I have images of equal size in
I have three Divs on the page and they are absolute positioned. Lets call
In my page I have three radio buttons and I want to checked the
So I currently have three unordered lists in my header. This is a single-page
I am developing a aspx page. In the page I have three dropdownlists and
I have a Windows Phone 7.1 application in which I got three pages, and

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.