Skip to main content

Microsoft Silverlight

Answered Question Navigation Between UserControlsRSS Feed

(0)

shaggygi
shaggygi

Member

Member

59 points

88 Posts

Navigation Between UserControls

Is it possible to navigate between UserControls' controls?  Meaning...

Let's say I have a main page ( Main.xaml ) that contains all UserControls and multiple pages ( Children[x].xaml ) that will transition via navigation controls in Main.xaml.  Can a control in Children1.xaml call an event to Main.xaml, make Children1.xaml disappear, and Children2.xaml appear?  Better yet, when Children2.xaml is displayed, have it navigate to a particular section in Children2.xaml ( Tabcontrol Tab3, etc. )?  Thank in advance.

 

johnnystock
johnnystock

Contributor

Contributor

2295 points

362 Posts

Silverlight MVP
Answered Question

Re: Navigation Between UserControls

I had nearly that exact question a few months ago and luckily there is an answer :).  In short you create a singleton object that contains references whatever you want to reference later.  This thread should give you the answer you are looking for.

Hope this helps,

John Stockton
Microsoft Silverlight MVP and RIA Developer at Ascentium
Co-Author of Silverlight 2 in Action

shaggygi
shaggygi

Member

Member

59 points

88 Posts

Re: Navigation Between UserControls

Thanks for the info.  I'll try to read over it tomorrow.  Also, I got your last preview for SL2 in Action.  Good work.  I hope you'll add an example in Chap. 12 on how to deploy to a server for internal use in addition with the the SL Streaming.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities