DocumentViewerCommands.ZoomCommand Property
In This Article
Gets or sets the command that specifies the zoom factor.
Namespace: DevExpress.WinUI.DocumentViewer
Assembly: DevExpress.WinUI.DocumentViewer.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
ICommand | A command that implements the ICommand interface. |
#Remarks
The command accepts a Double value (the DocumentViewer zoom factor) as a parameter.
#Example
The following code sample sets the document’s zoom factor to 0.5
when a user clicks the Button:
<Window ...
xmlns:dxdvr="using:DevExpress.WinUI.DocumentViewer">
<StackPanel Orientation="Vertical">
<dxdvr:DocumentViewer x:Name="documentviewer" DocumentSource="ms-appx:///data/Invoice.prnx" Height="700" />
<Button Command="{x:Bind documentviewer.Commands.ZoomCommand}" Content="Set Zoom to 50%" CommandParameter=".5"/>
</StackPanel>
</Window>
See Also