MapPolygon
MapPolygon
MapPolygon
MapPolygon
Class
Definition
Represents a polygon on a MapControl.
public : sealed class MapPolygon : MapElement
struct winrt::Windows::UI::Xaml::Controls::Maps::MapPolygon : MapElement
public sealed class MapPolygon : MapElement
Public NotInheritable Class MapPolygon Inherits MapElement
- Inheritance
- Attributes
Windows 10 requirements
Device family |
Windows 10 (introduced v10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Display pushpins, images, and shapes on the MapControl by adding them to its MapElements collection.
- Display an image such as a pushpin with optional text by using the MapIcon class. Keep the default image or provide a custom image.
- Define and display a MapPolygon or a MapPolyline. Alternately, to display XAML elements on the MapControl, add them to its Children collection.
For more info, see Display maps with 2D, 3D, and Streetside views.
Version history
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | Paths |
Constructors
MapPolygon() MapPolygon() MapPolygon() MapPolygon() |
Initializes a new instance of the MapPolygon class. |
Properties
Dispatcher Dispatcher Dispatcher Dispatcher |
Gets the CoreDispatcher that this object is associated with. The CoreDispatcher represents a facility that can access the DependencyObject on the UI thread even if the code is initiated by a non-UI thread. (Inherited from DependencyObject) |
FillColor FillColor FillColor FillColor |
Gets or sets the color used to fill the MapPolygon. |
IsEnabled IsEnabled IsEnabled IsEnabled |
Indicates whether users can interact with the MapElement. (Inherited from MapElement) |
IsEnabledProperty IsEnabledProperty IsEnabledProperty IsEnabledProperty |
Identifies the IsEnabled dependency property. (Inherited from MapElement) |
MapStyleSheetEntry MapStyleSheetEntry MapStyleSheetEntry MapStyleSheetEntry |
Gets or sets the name of an entry in the map's style sheet that you'd like to apply to this MapElement. (Inherited from MapElement) |
MapStyleSheetEntryProperty MapStyleSheetEntryProperty MapStyleSheetEntryProperty MapStyleSheetEntryProperty |
Identifies for the MapStyleSheetEntry dependency property. (Inherited from MapElement) |
MapStyleSheetEntryState MapStyleSheetEntryState MapStyleSheetEntryState MapStyleSheetEntryState |
Gets or sets the name of the state of this MapElement. If the style sheet defines a style for that state, that style is applied to this element. Values defined in the style sheet for the state override values defined in the MapStyleSheetEntry. (Inherited from MapElement) |
MapStyleSheetEntryStateProperty MapStyleSheetEntryStateProperty MapStyleSheetEntryStateProperty MapStyleSheetEntryStateProperty |
Identifies for the MapStyleSheetEntryState dependency property. (Inherited from MapElement) |
MapTabIndex MapTabIndex MapTabIndex MapTabIndex |
Gets or sets a value that determines the order in which elements of the MapControl receive focus when the user navigates through those elements by pressing the Tab key. (Inherited from MapElement) |
MapTabIndexProperty MapTabIndexProperty MapTabIndexProperty MapTabIndexProperty |
Identifies the MapTabIndex dependency property. (Inherited from MapElement) |
Path Path Path Path |
Gets or sets the collection of coordinates that define the MapPolygon shape. |
PathProperty PathProperty PathProperty PathProperty |
Identifies the Path dependency property. |
Paths Paths Paths Paths |
Gets a list of Geopath objects that define the MapPolygon shape. |
StrokeColor StrokeColor StrokeColor StrokeColor |
Gets or sets the color used to draw the MapPolygon. |
StrokeDashed StrokeDashed StrokeDashed StrokeDashed |
Gets or sets a value that indicates whether the line used to draw the MapPolygon is dashed. |
StrokeDashedProperty StrokeDashedProperty StrokeDashedProperty StrokeDashedProperty |
Identifies the StrokeDashed dependency property. |
StrokeThickness StrokeThickness StrokeThickness StrokeThickness |
Gets or sets the width of the line used to draw the MapPolygon, in logical pixels. |
StrokeThicknessProperty StrokeThicknessProperty StrokeThicknessProperty StrokeThicknessProperty |
Identifies the StrokeThickness dependency property. |
Tag Tag Tag Tag |
Gets or sets an arbitrary object value that can be used to store custom information about this object. (Inherited from MapElement) |
TagProperty TagProperty TagProperty TagProperty |
Identifies the Tag dependency property. (Inherited from MapElement) |
Visible Visible Visible Visible |
Gets or sets a value that indicates whether the MapElement is visible on the MapControl. (Inherited from MapElement) |
VisibleProperty VisibleProperty VisibleProperty VisibleProperty |
Identifies the Visible dependency property. (Inherited from MapElement) |
ZIndex ZIndex ZIndex ZIndex |
Gets or sets the z-index of the MapElement. A MapElement with a higher z-index is displayed on top of a MapElement with a lower z-index. (Inherited from MapElement) |
ZIndexProperty ZIndexProperty ZIndexProperty ZIndexProperty |
Identifies the ZIndex dependency property. (Inherited from MapElement) |
Methods
See also
Feedback
Loading feedback...