Hi,
How will I navigate on another page on any event in silverlight.what will be code for it.
Thanks, in advance
How to navigate on another page
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Priya LingeRank #785 · 2.9K reputationPosted Sep 15, 2011, 9:01 PM EDT
Navigation in a Silverlight application by
using the Frame and Page controls.
Namespace:For Navigation
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
On button click event we can navigate to other page like below,
For more information ,please cheack below link.
http://msdn.microsoft.com/en-us/library/cc838245(v=vs.95).aspx
Hope this will help you.
Thanks.
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Sep 16, 2011, 12:33 AM EDT
In your event....write this
this.Content = new your_xaml_file_name();
like this
private void button_click(object sender, RoutedEventArgs e)
{
this.Content = new Page1();
}
hope it help you...
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 16, 2011, 1:52 AM EDT
Try this,
this.NavigationService.Navigate(new Uri("/Products", UriKind.Relative));
----------------------------------------------------------------------
If this post helps you, then mark as "Correct Answer"
Thank You