Поделиться через


NavigationService.Refresh Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Reloads the current page.

Namespace:  System.Windows.Navigation
Assembly:  System.Windows.Controls.Navigation (in System.Windows.Controls.Navigation.dll)

Syntax

'Declaration
Public Sub Refresh
public void Refresh()

Remarks

By default, navigation to the current URI will not reload the content. However, you can use this method to force the content to reload.

This method is useful only when you set the Frame.ContentLoader property to an INavigationContentLoader implementation that can produce different page contents upon reload. For example, your content loader might display a login page when unauthorized users navigate to a particular page. After authentication, you can call Refresh to display the normal page content.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.