NavigationCommands.Refresh 속성

정의

명령을 나타내는 Refresh 값을 가져옵니다.

public:
 static property System::Windows::Input::RoutedUICommand ^ Refresh { System::Windows::Input::RoutedUICommand ^ get(); };
public static System.Windows.Input.RoutedUICommand Refresh { get; }
static member Refresh : System.Windows.Input.RoutedUICommand
Public Shared ReadOnly Property Refresh As RoutedUICommand

속성 값

라우트된 UI 명령입니다.

기본값
키 제스처 F5
UI 텍스트 리프레쉬

예제

다음 예제에서는 RefreshFrame. 현재 FrameRefresh 콘텐츠를 다시 로드하여 명령에 응답 Frame 하는 구현을 제공합니다.

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- NavigationCommands.Refresh -->
<MenuItem
  Command="NavigationCommands.Refresh"
  CommandTarget="{Binding ElementName=frame}" />
<!-- The following Frame is used to process NavigationCommands.Refresh commands -->
<Frame Name="frame" NavigationUIVisibility="Hidden" Source="Page1.xaml" />
</Window>

설명

이 명령은 현재 페이지를 새로 고치려는 의도를 나타냅니다.

Frame 명령을 NavigationWindow 사용할 필요는 없지만 명령에 응답하기 Refresh 위한 지원을 구현하고 구현합니다. 대부분의 경우 해당 명령에 대한 응답 구현은 애플리케이션 작성기의 책임입니다.

XAML 특성 사용

<object property="NavigationCommands.Refresh"/>

적용 대상

추가 정보