NavigationWindow.Refresh 方法

定义

重新加载当前内容。Reloads the current content.

public:
 void Refresh();
public:
 virtual void Refresh();
public void Refresh ();
member this.Refresh : unit -> unit
abstract member Refresh : unit -> unit
override this.Refresh : unit -> unit
Public Sub Refresh ()

示例

下面的示例演示如何调用 Refresh 方法来重新加载 NavigationWindow中的内容。The following example shows how to call the Refresh method to reload the content in a NavigationWindow.

void navigateRefreshButton_Click(object sender, RoutedEventArgs e)
{
    this.Refresh();
}
Private Sub navigateRefreshButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    Me.Refresh()
End Sub

注解

请参阅 NavigationService.RefreshSee NavigationService.Refresh.

适用于