NavigationCommands.LastPage 속성

정의

Last Page 명령을 나타내는 값을 가져옵니다.Gets the value that represents the Last Page command.

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

속성 값

라우트된 UIUI 명령입니다.The routed UIUI command.

기본값Default Values
키 제스처Key Gesture 해당 없음N/A
UI 텍스트UI Text 마지막 페이지Last Page

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다 LastPage 와 함께에서 FlowDocumentPageViewer입니다.The following example shows how to use LastPage in conjunction with a FlowDocumentPageViewer. 합니다 FlowDocumentPageViewer 에 응답 하는 구현을 제공 합니다 LastPage 마지막 페이지를 이동 하 여 명령을 합니다.The FlowDocumentPageViewer provides an implementation that responds to the LastPage command by going to the last page.

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- NavigationCommands.LastPage -->
<MenuItem
  Command="NavigationCommands.LastPage"
  CommandTarget="{Binding ElementName=flowDocumentPageViewer}" />
<!-- The following FlowDocumentPageViewer is used to process NavigationCommands.LastPage commands -->
<FlowDocumentPageViewer Name="flowDocumentPageViewer">
  <FlowDocument>
    <!-- Document Content-->
    <Paragraph>
      Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed vulputate, lacus non sagittis pharetra, diam dolor dictum tellus, et hendrerit odio risus nec erat. Nam sollicitudin imperdiet mi. Sed rutrum. Morbi vel nunc. Donec imperdiet. Morbi hendrerit leo. Maecenas imperdiet. Curabitur viverra tempor nisi. Phasellus vitae augue sit amet neque venenatis elementum. Proin posuere lobortis quam. Curabitur et neque. Donec ac sem vitae libero pharetra luctus. Fusce purus. Nulla vehicula, leo commodo dictum lobortis, odio augue accumsan ante, id dictum nisi libero quis diam. Nam augue erat, malesuada eu, tincidunt eu, dictum ut, ante. In vel magna vel ligula faucibus lobortis. Praesent a felis non mi fringilla vulputate. Integer quis tellus cursus elit tincidunt vehicula. Morbi commodo sem eu eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;
    </Paragraph>
  </FlowDocument>
</FlowDocumentPageViewer>
</Window>

설명

이 명령은 마지막 페이지로 이동 하려고 함을 나타냅니다.This command indicates the intention to go to the last page.

DocumentViewerFlowDocumentReader, FlowDocumentScrollViewer, 및 FlowDocumentPageViewer 응답 하기 위한 지원을 구현 합니다 LastPage 명령을 사용 하 여 필요 하지 않지만, 대부분의 구현은 명령에 응답 하는 애플리케이션의 책임 작성기입니다.DocumentViewer, FlowDocumentReader, FlowDocumentScrollViewer, and FlowDocumentPageViewer implement support for responding to the LastPage command, although you are not required to use it; in many cases the implementation in response to that command is the responsibility of the application writer.

XAML 특성 사용XAML Attribute Usage

<object property="NavigationCommands.LastPage"/>  

적용 대상

추가 정보