Back to Devexpress

DiagramControl.ZoomFactor Property

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-5d3c7dc6.md

latest2.4 KB
Original Source

DiagramControl.ZoomFactor Property

Specifies the diagram zoom factor. This is a dependency property.

Namespace : DevExpress.Xpf.Diagram

Assembly : DevExpress.Xpf.Diagram.v25.2.dll

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
[Browsable(false)]
public double ZoomFactor { get; set; }
vb
<Browsable(False)>
Public Property ZoomFactor As Double

Property Value

TypeDescription
Double

A Double value specifying the document zoom factor.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ZoomFactor property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-diagram-ms-automatic-graph-layout-algorithms/CS/DXDiagram.CustomLayoutAlgorithms/LayoutExampleWindow.xaml#L23

xml
ToolboxVisibility="Compact"
ZoomFactor="0.73"
SelectedStencils="BasicShapes,ArrowShapes" />

See Also

ZoomIn()

ZoomOut()

FitToPage()

FitToItems(IEnumerable<DiagramItem>)

FitToWidth()

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace