Class ScaleLine
The ScaleLine Control generates a line representing a certain distance on the map in both Metric and US units.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class ScaleLine : TemplatedView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Constructors
| Name | Description |
|---|---|
| ScaleLine() | Initializes a new instance of the ScaleLine class. |
Fields
| Name | Description |
|---|---|
| ColorProperty | Identifies the Color bindable property. |
| MapScaleProperty | Identifies the MapScale bindable property. |
| MapViewProperty | Identifies the GeoView Dependency Property. |
| TargetWidthProperty | Identifies the TargetWidth bindable property. |
Properties
| Name | Description |
|---|---|
| Color | Gets or sets the Color that will be used for the scale line parts. |
| MapScale | Gets or sets the scale that the ScaleLine will use to calculate scale in metric and imperial units. |
| MapView | Gets or sets the MapView property that can be attached to a ScaleLine control to accurately set the scale, instead of setting the MapScale property directly. |
| TargetWidth | Gets or sets the width that will be used to calculate the length of the ScaleLine. |
Methods
| Name | Description |
|---|---|
| CalculateScale(Polygon?, double) | Calculates the scale at the center of a polygon, at a given pixel size. |
| OnApplyTemplate() |