Ejemplo n.º 1
0
 IReadOnlyList <MapElement> IMapContextRequestedEventArgsResolver.MapElements(MapContextRequestedEventArgs e) => e.MapElements;
Ejemplo n.º 2
0
 Point IMapContextRequestedEventArgsResolver.Position(MapContextRequestedEventArgs e) => e.Position;
Ejemplo n.º 3
0
 Geopoint IMapContextRequestedEventArgsResolver.Location(MapContextRequestedEventArgs e) => e.Location;
Ejemplo n.º 4
0
 /// <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);
Ejemplo n.º 5
0
 /// <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);
Ejemplo n.º 6
0
 /// <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);
Ejemplo n.º 7
0
 private void MyMap_MapContextRequested(MapControl sender, MapContextRequestedEventArgs args)
 {
     contextMenu.ShowAt(sender, args.Position);
 }