Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to close current Navigation frame in a silverlight application?
Posted
Comments
Kenneth Haugland 31-Jul-12 6:34am    
What do you mean? To remove it from the window or?
suganyass 31-Jul-12 6:40am    
New navigation page opened in navigation frame. Just I want to close it by clicking a button.

1 solution

The Navigation Frame is a "Master Page" for Silverlight Applications.

You can do 3 basic things on your button click event:
1. Go back to the previous page:
C#
this.navigationframe.GoBack();

2. Go to specific page:
C#
this.ContentFrame.Navigate(new System.Uri("yourpage.xaml", System.UriKind.RelativeOrAbsolute));

3. Go forward if you are in previous page:
C#
this.ContentFrame.GoForward();

So, you cannot close a page, you can navigate through them.

Hope it helps and answers your question.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900