IReadOnlyList <MapElement> IMapContextRequestedEventArgsResolver.MapElements(MapContextRequestedEventArgs e) => e.MapElements;
Point IMapContextRequestedEventArgsResolver.Position(MapContextRequestedEventArgs e) => e.Position;
Geopoint IMapContextRequestedEventArgsResolver.Location(MapContextRequestedEventArgs e) => e.Location;
/// <summary> /// Gets the x- and y-coordinate values that define the point on the map of a context input gesture, such as a right-click. /// </summary> /// <param name="e">The requested <see cref="MapContextRequestedEventArgs"/>.</param> /// <returns>The x- and y-coordinate values that define the point on the map of a context input gesture, such as a right-click.</returns> public static Point Position(this MapContextRequestedEventArgs e) => Resolver.Position(e);
/// <summary> /// Gets a collection of MapElement objects at the point on the map specified by the Location property. /// </summary> /// <param name="e">The requested <see cref="MapContextRequestedEventArgs"/>.</param> /// <returns>A collection of MapElement objects at the point on the map specified by the Location property.</returns> public static IReadOnlyList <MapElement> MapElements(this MapContextRequestedEventArgs e) => Resolver.MapElements(e);
/// <summary> /// Gets a geolocation on the map of a context input gesture, such as a right-click. /// </summary> /// <param name="e">The requested <see cref="MapContextRequestedEventArgs"/>.</param> /// <returns>The geolocation on the map of a context input gesture, such as a right-click.</returns> public static Geopoint Location(this MapContextRequestedEventArgs e) => Resolver.Location(e);
private void MyMap_MapContextRequested(MapControl sender, MapContextRequestedEventArgs args) { contextMenu.ShowAt(sender, args.Position); }