Share via


ScrollView.ZoomTo Method

Definition

Overloads

ZoomTo(Single, IReference<Vector2>)

Asynchronously zooms to the specified zoom factor with animations enabled and snap points respected.

ZoomTo(Single, IReference<Vector2>, ScrollingZoomOptions)

Asynchronously zooms to the specified zoom factor with the specified animation and snap point modes.

ZoomTo(Single, IReference<Vector2>)

Asynchronously zooms to the specified zoom factor with animations enabled and snap points respected.

public:
 virtual int ZoomTo(float zoomFactor, IReference<float2> ^ centerPoint) = ZoomTo;
/// [Windows.Foundation.Metadata.Overload("ZoomTo")]
int ZoomTo(float const& zoomFactor, IReference<float2> const& centerPoint);
[Windows.Foundation.Metadata.Overload("ZoomTo")]
public int ZoomTo(float zoomFactor, System.Nullable<Vector2> centerPoint);
function zoomTo(zoomFactor, centerPoint)
Public Function ZoomTo (zoomFactor As Single, centerPoint As Nullable(Of Vector2)) As Integer

Parameters

zoomFactor
Single

float

The amount to scale the content.

centerPoint

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

The center point of the zoom factor change.

Returns

Int32

int

A correlation ID number used to associate this method call with corresponding events.

Attributes

Applies to

ZoomTo(Single, IReference<Vector2>, ScrollingZoomOptions)

Asynchronously zooms to the specified zoom factor with the specified animation and snap point modes.

/// [Windows.Foundation.Metadata.Overload("ZoomToWithOptions")]
int ZoomTo(float const& zoomFactor, IReference<float2> const& centerPoint, ScrollingZoomOptions const& options);
[Windows.Foundation.Metadata.Overload("ZoomToWithOptions")]
public int ZoomTo(float zoomFactor, System.Nullable<Vector2> centerPoint, ScrollingZoomOptions options);
function zoomTo(zoomFactor, centerPoint, options)
Public Function ZoomTo (zoomFactor As Single, centerPoint As Nullable(Of Vector2), options As ScrollingZoomOptions) As Integer

Parameters

zoomFactor
Single

float

The amount to scale the content.

centerPoint

IReference<Vector2>

Nullable<Vector2>

IReference<float2>

The center point of the zoom factor change.

options
ScrollingZoomOptions

Options that specify whether or not animations are enabled and snap points are respected.

Returns

Int32

int

A correlation ID number used to associate this method call with corresponding events.

Attributes

Applies to