MapControl.TrySetViewAsync 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
| Name | Description |
|---|---|
| TrySetViewAsync(Geopoint, Nullable<Double>, Nullable<Double>, Nullable<Double>, MapAnimationKind) |
Windows.UI.Xaml.Controls.Maps.MapControl |
| TrySetViewAsync(Geopoint, Nullable<Double>, Nullable<Double>, Nullable<Double>) |
Windows.UI.Xaml.Controls.Maps.MapControl |
| TrySetViewAsync(Geopoint, Nullable<Double>) |
Windows.UI.Xaml.Controls.Maps.MapControl |
| TrySetViewAsync(Geopoint) |
Windows.UI.Xaml.Controls.Maps.MapControl |
TrySetViewAsync(Geopoint, Nullable<Double>, Nullable<Double>, Nullable<Double>, MapAnimationKind)
Windows.UI.Xaml.Controls.Maps.MapControl
public System.Threading.Tasks.Task<bool> TrySetViewAsync(Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint center, double? zoomLevel, double? heading, double? desiredPitch, Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.MapAnimationKind animation);
member this.TrySetViewAsync : Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint * Nullable<double> * Nullable<double> * Nullable<double> * Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.MapAnimationKind -> System.Threading.Tasks.Task<bool>
Public Function TrySetViewAsync (center As Geopoint, zoomLevel As Nullable(Of Double), heading As Nullable(Of Double), desiredPitch As Nullable(Of Double), animation As MapAnimationKind) As Task(Of Boolean)
Parameters
- center
- Geopoint
- animation
- MapAnimationKind
Returns
IAsyncOperation
Applies to
TrySetViewAsync(Geopoint, Nullable<Double>, Nullable<Double>, Nullable<Double>)
Windows.UI.Xaml.Controls.Maps.MapControl
public System.Threading.Tasks.Task<bool> TrySetViewAsync(Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint center, double? zoomLevel, double? heading, double? desiredPitch);
member this.TrySetViewAsync : Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint * Nullable<double> * Nullable<double> * Nullable<double> -> System.Threading.Tasks.Task<bool>
Public Function TrySetViewAsync (center As Geopoint, zoomLevel As Nullable(Of Double), heading As Nullable(Of Double), desiredPitch As Nullable(Of Double)) As Task(Of Boolean)
Parameters
- center
- Geopoint
Returns
IAsyncOperation
Applies to
TrySetViewAsync(Geopoint, Nullable<Double>)
Windows.UI.Xaml.Controls.Maps.MapControl
public System.Threading.Tasks.Task<bool> TrySetViewAsync(Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint center, double? zoomLevel);
member this.TrySetViewAsync : Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint * Nullable<double> -> System.Threading.Tasks.Task<bool>
Public Function TrySetViewAsync (center As Geopoint, zoomLevel As Nullable(Of Double)) As Task(Of Boolean)
Parameters
- center
- Geopoint
Returns
IAsyncOperation
Applies to
TrySetViewAsync(Geopoint)
Windows.UI.Xaml.Controls.Maps.MapControl
public System.Threading.Tasks.Task<bool> TrySetViewAsync(Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint center);
member this.TrySetViewAsync : Microsoft.Toolkit.Win32.UI.Controls.Interop.WinRT.Geopoint -> System.Threading.Tasks.Task<bool>
Public Function TrySetViewAsync (center As Geopoint) As Task(Of Boolean)
Parameters
- center
- Geopoint
Returns
IAsyncOperation