Skip to main content
Home Forums Silverlight Design Designing with Silverlight Navigation Between UserControls
2 replies. Latest Post by shaggygi on June 18, 2008.
(0)
shaggygi
Member
59 points
88 Posts
06-18-2008 10:13 PM |
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
Contributor
2295 points
362 Posts
06-18-2008 10:26 PM |
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,
06-18-2008 11:17 PM |
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.