ScrollViewer.ZoomToFactor(Single) Method

Definition

Note

ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.

Sets the effective value of ZoomFactor.

public:
 virtual void ZoomToFactor(float factor) = ZoomToFactor;
/// [Windows.Foundation.Metadata.Deprecated("ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
void ZoomToFactor(float factor);
[Windows.Foundation.Metadata.Deprecated("ZoomToFactor may be altered or unavailable for releases after Windows 8.1. Instead, use ChangeView.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Microsoft.UI.Xaml.WinUIContract")]
public void ZoomToFactor(float factor);
Public Sub ZoomToFactor (factor As Single)

Parameters

factor
Single

The zoom factor to set. The factors are based on a norm of 1.0, which represents no zoom applied. The values you can set are also influenced by current values for MinZoomFactor and MaxZoomFactor.

Attributes
Windows.Foundation.Metadata.DeprecatedAttribute

Applies to