WP7 fragment error
For a Windows Phone 7 app, I have created an application bar which is common for all my pages and is defined inside App.xaml

For eg. the buttons are Home, Help, About
Now, when I start my application, the default page is Home.xaml and the application bar is displayed.  When I click Help or About buttons, the navigation is performed using NavigationService and the corresponding page is displayed. But, if I click Home button, an exception is thrown - No Fragment Support at this time.

I found some suggestions where a unique querystring needs to be appended if you are trying to navigate to the same page.  Are there any other better solutions?

Also, can anyone suggest any techniques to keep such code in one place so I don't have to repeat this logic on every page for which there is an app bar icon.

Pratik
WP7 fragment error
===

For a Windows Phone 7 app, I have created an application bar which is common for all my pages and is defined inside App.xaml

For eg. the buttons are Home, Help, About
Now, when I start my application, the default page is Home.xaml and the application bar is displayed.  When I click Help or About buttons, the navigation is performed using NavigationService and the corresponding page is displayed. But, if I click Home button, an exception is thrown - No Fragment Support at this time.

I found some suggestions where a unique querystring needs to be appended if you are trying to navigate to the same page.  Are there any other better solutions?

Also, can anyone suggest any techniques to keep such code in one place so I don't have to repeat this logic on every page for which there is an app bar icon.

Pratik