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 7607925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T00:47:25+00:00 2026-05-31T00:47:25+00:00

If I have a button in a navigation page, how do I make it

  • 0

If I have a button in a navigation page, how do I make it target the frame that it is in?

For example, I have a frame called navFrame in MainPage.xaml and I have a navigation page in the Views folder called Home.xaml with a button on it. Basically I’m trying to make clicking the button Home.xaml target the navFrame in MainPage.xaml.

Is that possible? for the button code I tried using MainPage.navFrame.Navigate(…) but it gave me the error “an object is required to reference a non static property…” but I don’t know what kind of object it wants or how I would use it.

I’m sorry if this is a stupid question. I’m new to all of this and I spent all last night trying to figure out. Any help would be really appreciated!

  • 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-31T00:47:26+00:00Added an answer on May 31, 2026 at 12:47 am

    From the error message it seems that you don’t have a reference to the instance of MainPage in the Home class.

    You could get a reference to it through searching up the Visual Tree or calling Application.Current.RootVisual or using some kind of locator framework.

    But you don’t really need to get a reference to MainPage. From inside the Home : Page class you could instead try

    this.NavigationService.Navigate(new Uri("/About", UriKind.Relative))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a button on an ASP.Net page that will call Response.Redirect back to
I have an 'info' button that does a modal flip to an info page.
I have jqgrid and in that I have one custom navigation button to export
I have a root view controller with just a simple navigation button that loads
I have menu button that is being put in the Navigation controller on every
I have a list of items with a plus button in the navigation bar
I have button, which fires an event, that deletes a record from the database.
I have a button that I would like to disable when the form submits
We have a button that saves asynchronously using AjaxToolKit/C#/.NET. I'm getting this in my
I have a button on a website that creates a directory and copys 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.