Class MeasureToolbar
The MeasureToolbar control is used to measure distances and areas on a MapView.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
[TemplatePart(Name = "MeasureLength", Type = typeof(ToggleButton))]
[TemplatePart(Name = "MeasureArea", Type = typeof(ToggleButton))]
[TemplatePart(Name = "MeasureFeature", Type = typeof(ToggleButton))]
[TemplatePart(Name = "MeasureResult", Type = typeof(TextBlock))]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_BasemapGalleryWinRTTypeDetails))]
public class MeasureToolbar : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Control>
Constructors
| Name | Description |
|---|---|
| MeasureToolbar() | Initializes a new instance of the MeasureToolbar class. |
Fields
| Name | Description |
|---|---|
| AreaUnitsProperty | Identifies the AreaUnits dependency property. |
| LinearUnitsProperty | Identifies the LinearUnits dependency property. |
| MapViewProperty | Identifies the MapView dependency property. |
| SelectedAreaUnitProperty | Identifies the SelectedAreaUnit dependency property. |
| SelectedLinearUnitProperty | Identifies the SelectedLinearUnit dependency property. |
Properties
| Name | Description |
|---|---|
| AreaUnits | Gets or sets the collection of AreaUnit used to configure display for area measurements. |
| LinearUnits | Gets or sets the collection of LinearUnit used to configure display for distance measurements. |
| MapView | Gets or sets the map view where measuring distances and areas will be done. |
| MeasureTool | Gets the VertexTool used for measuring distances and areas. |
| RedoCommand | Gets a command that redoes the last operation performed in the geometry editor. |
| SelectedAreaUnit | Gets or sets the unit used to display for area measurements. |
| SelectedLinearUnit | Gets or sets the unit used to display for distance measurements. |
| UndoCommand | Gets a command that undoes the last operation performed in the geometry editor. |
Methods
| Name | Description |
|---|---|
| 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. |