Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I refresh the browser page from within a Silverlight app?

Is there a way to reload the browser page from within Silverlight? i.e. have the same effect as a user clicking the reload button?

like image 970
Edward Tanguay Avatar asked Apr 30 '10 12:04

Edward Tanguay


4 Answers

I've always used:

namespace for refresh page :

using System.Windows.Browser;

code: give this code inside ur button click..

HtmlPage.Document.Submit();
like image 106
Dan Auclair Avatar answered Nov 19 '22 19:11

Dan Auclair


You could try this::-

 HtmlPage.Window.Navigate(HtmlPage.Document.DocumentUri);
like image 7
AnthonyWJones Avatar answered Nov 19 '22 21:11

AnthonyWJones


Yes. You can use the NavigationService.Refresh method to reload the page.

like image 3
Rune Grimstad Avatar answered Nov 19 '22 21:11

Rune Grimstad


http://www.divelements.com/silverlight/tools.aspx

Refer to the link above.

Use:

htmlHost.Document.Submit();
like image 2
Sean Campbell Avatar answered Nov 19 '22 21:11

Sean Campbell