NavigationCommands.NextPage プロパティ

定義

Next Page コマンドを表す値を取得します。Gets the value that represents the Next Page command.

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

プロパティ値

UIUI ルーティング コマンド。The routed UIUI command.

既定値Default Values
キー ジェスチャKey Gesture N/AN/A
UI テキストUI Text 次ページNext Page

NextPageFlowDocumentPageViewerと組み合わせて使用する方法を次の例に示します。The following example shows how to use NextPage in conjunction with a FlowDocumentPageViewer. FlowDocumentPageViewer 、次のページに移動するNextPageことで、コマンドに応答する実装を提供します。The FlowDocumentPageViewer provides an implementation that responds to the NextPage command by going to the next page.

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<!-- NavigationCommands.NextPage -->
<MenuItem
  Command="NavigationCommands.NextPage"
  CommandTarget="{Binding ElementName=flowDocumentPageViewer}" />
<!-- The following FlowDocumentPageViewer is used to process NavigationCommands.NextPage 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 next page.

DocumentViewerFlowDocumentReaderNextPage 、およびFlowDocumentPageViewerは、コマンドに応答するためのサポートを実装しますが、使用する必要はありません。多くの場合、そのコマンドに対する応答としての実装は、アプリケーションの役割を担います。 FlowDocumentScrollViewerライター.DocumentViewer, FlowDocumentReader, FlowDocumentScrollViewer, and FlowDocumentPageViewer implement support for responding to the NextPage 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.NextPage"/>  

適用対象

こちらもご覧ください