NavigationCommands.NextPage Eigenschaft

Definition

Ruft den Wert ab, der den Next Page Befehl darstellt.

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

Eigenschaftswert

Der Befehl für die routingfähige Benutzeroberfläche.

Standardwerte
Tastengeste N/A
UI-Text Nächste Seite

Beispiele

Das folgende Beispiel zeigt, wie sie NextPage in Verbindung mit einem FlowDocumentPageViewer. Dies FlowDocumentPageViewer stellt eine Implementierung bereit, die auf den NextPage Befehl reagiert, indem Sie zur nächsten Seite wechseln.

<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>

Hinweise

Dieser Befehl gibt die Absicht an, zur nächsten Seite zu wechseln.

DocumentViewer, FlowDocumentReader, FlowDocumentScrollViewerund FlowDocumentPageViewer implementieren Sie Unterstützung für die Reaktion auf den NextPage Befehl, obwohl Sie sie nicht verwenden müssen. In vielen Fällen ist die Implementierung als Reaktion auf diesen Befehl die Verantwortung des Anwendungsautors.

Verwendung von XAML-Attributen

<object property="NavigationCommands.NextPage"/>

Gilt für:

Weitere Informationen