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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:43:19+00:00 2026-05-31T01:43:19+00:00

I am trying to dynamically fill a second panorama page based on what item

  • 0

I am trying to dynamically fill a second panorama page based on what item was selected from the home application screen.

On the application’s first start screen there is a listbox if items each with text. If a user taps on an item with text “foobar” a template page should load and the title of the template page should be set to “foobar” and this second panorama page should know that it’s data should be related to “foobar”.

Is there anyway to do this?

I currently have my MainPage navigate to a new page (DynamicPage.xaml). This navigation is triggered when a ListBox_SelectionChanged event occurs. I have the title text of the DynampicPage.xaml Binding to a TitleText variable that is located in MainPage.xaml.cs. However, when I do this the title of DynamicPage.xaml is ever only set to my initialization value for the titleText variable even though I am updating this variable right before I navigate to the page.

If anyone can provide some help I would be very grateful as I am just a beginner on the WP7 platform. 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-05-31T01:43:21+00:00Added an answer on May 31, 2026 at 1:43 am

    The Binding you’re using for the title is only going to update if the TitleText property is a dependency property or if your MainPage is implementing the INotifyPropertyChanged interface so your class can notify the UI when one of its properties changed.

    http://windowsphonegeek.com/articles/All-about-Dependency-Properties-in-Silverlight-for-WP7

    http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged(v=vs.95).aspx

    But I think this is not the best way for you to achieve this. For now a much better way is to store your data somewhere in a static class, in the main page’s constructor load these data into the listbox, and when the user selected an item, navigate the user to the second page like this:

    NavigationService.Navigate(new Uri("/DynamicPage.xaml?Item=" + selectedItem.Id, UriKind.Relative));
    

    When you navigate like this a new instance of DynamicPage is created, and in the OnNavigatedTo method you can access the navigation parameters and populate your page with the selected data. For example:

    <controls:Panorama x:Name="MyPanorama" Title="TitleHere">...</controls:Panorama>
    
    Item selectedItem = StaticData.GetItem(NavigationContext.QueryString["Item"]);
    MyPanorama.Title = selectedItem.Name.ToUpper();
    Description.Text = selectedItem.Description;
    

    This way you can use secondary tiles and toast notifications to directly point to a specific content in your application.

    If you’re getting to understand the navigation you should definitely use the pattern called Model-View-ViewModel which is about to solve these problems mostly with bindings, but trust me, probably this is the easier way for now.

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

Sidebar

Related Questions

I'm trying to dynamically create a set of labels in my XUL Runner application.
I'm trying to dynamically fill a form in Python using Mechanize. However, when I
I am trying to fill up my ListPreference from within my Activity rather than
I am trying to dynamically fill the Solution right click menu with menu items
Possible Duplicate: Change custom color for Rectangle.Fill or Grid.Background I'm trying to dynamically set
I am trying to dynamically change a query in a SQLDataAdapter based off the
I am trying to fill the screen with divs, and I'm thinking about using
I'm trying to fill a gridview dynamically with icons. I Followed the gridview hello
I am trying to fill options into a listbox dynamically. I want to set
I'm currently trying to create a page with dynamically generated images, which are not

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.