Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

tcook815

@tcook815
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Navigation framework in tabs
    T tcook815

    Hello, I have a Silverlight 3 application where I use a tab control and I want to implement the navigational framework into it. The tabs on my page are created dynamically by the user, saying this

    TabItem ti = new TabItem();
    Frame frame = new Frame();
    ti.Content = frame;
    MyTabs.Items.Add(ti);
    

    When the user clicks a link, I want content to load into whichever tab is currently selected, so I say this

    HyperlinkButton btn = sender as HyperlinkButton;
    string url = btn.Tag.ToString();
    Frame frame = MyTabs.SelectedContent as Frame;
    frame.Navigate(new Uri(url, UriKind.Relative));
    

    The current tab loads the page into its frame correctly. However, as I click through the other tabs, they also have loaded the page into their frames, so all open tabs have the exact same content. So for example, the user has 5 tabs open. They click a link, and the currently selected tab loads a Page into its Frame. If they go to one of the four other tabs, they see that those tabs also loaded the same Page. How can I make sure that only the selected tab gets its new Page and not the other tabs? Thanks to anyone who can help.

    WPF question help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups