Export (0) Print
Expand All

NavigationCommands::IncreaseZoom Property

Gets the value that represents the Increase Zoom command.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public:
static property RoutedUICommand^ IncreaseZoom {
	RoutedUICommand^ get ();
}
<object property="NavigationCommands.IncreaseZoom"/>

Property Value

Type: System.Windows.Input::RoutedUICommand
The routed UI command.

Default Values

Key Gesture

N/A

UI Text

Increase Zoom

This command indicates the intention to increase the zoom.

DocumentViewer, FlowDocumentReader, FlowDocumentScrollViewer, and FlowDocumentPageViewer implement support for responding to the IncreaseZoom 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.

The following example shows how to use IncreaseZoom in conjunction with a FlowDocumentPageViewer. The FlowDocumentPageViewer provides an implementation that responds to the IncreaseZoom command by decreasing the zoom percentage.

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">


...


<!-- NavigationCommands.IncreaseZoom -->
<MenuItem
  Command="NavigationCommands.IncreaseZoom"
  CommandTarget="{Binding ElementName=flowDocumentPageViewer}" />


...


<!-- The following FlowDocumentPageViewer is used to process NavigationCommands.IncreaseZoom 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>

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft