Hi,
How will I navigate on another page on any event in silverlight.what will be code for it.
Thanks, in advance
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Prabhu RajaPosted Sep 16, 2011, 5:52 AM
Try this,
this.NavigationService.Navigate(new Uri("/Products", UriKind.Relative));
----------------------------------------------------------------------
If this post helps you, then mark as "Correct Answer"
Thank You
Jiteendra SampathiraoPosted Sep 16, 2011, 4:33 AM
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...
Priya LingePosted Sep 16, 2011, 1:01 AM
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.