Show / Hide Table of Contents

Class ScaleLine

The ScaleLine Control generates a line representing a certain distance on the map in both Metric and US units.

Inheritance
object
DependencyObject
UIElement
FrameworkElement
Control
ScaleLine
Implements
IEquatable<DependencyObject>
IAnimationObject
IVisualElement
IVisualElement2
IEquatable<UIElement>
IEquatable<FrameworkElement>
IWinRTObject
IUnmanagedVirtualMethodTableProvider
IDynamicInterfaceCastable
IEquatable<Control>
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_BasemapGalleryWinRTTypeDetails))]
public class ScaleLine : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Control>

Constructors

Name Description
ScaleLine()

Initializes a new instance of the ScaleLine class.

Fields

Name Description
MapScaleProperty

The dependency property for the Scale property.

MapViewProperty

Identifies the GeoView Dependency Property.

TargetWidthProperty

Identifies the dependency property for the TargetWidth property.

Properties

Name Description
MapScale
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()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnCreateAutomationPeer()

When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure.

In this article
Back to top Generated by DocFX