ScrollView.ZoomTo 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.
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<float2>
The center point of the zoom factor change.
Returns
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<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
int
A correlation ID number used to associate this method call with corresponding events.
- Attributes