ScrollViewer.ZoomToFactor(Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 const& 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);
function zoomToFactor(factor)
Public Sub ZoomToFactor (factor As Single)
Parameters
- factor
-
Single
float
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