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 = "MeasureResult", Type = typeof(TextBlock))]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_CompassWinRTTypeDetails))]
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 |
---|---|
AreaSketchEditorProperty | Identifies the AreaSketchEditor dependency property. |
AreaUnitsProperty | Identifies the AreaUnits dependency property. |
LineSketchEditorProperty | Identifies the LineSketchEditor 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. |
SelectionFillSymbolProperty | Identifies the SelectionFillSymbol dependency property. |
SelectionLineSymbolProperty | Identifies the SelectionLineSymbol dependency property. |
Properties
Name | Description |
---|---|
AreaSketchEditor | Gets or sets the sketch editor used for measuring areas. |
AreaUnits | Gets or sets the collection of AreaUnit used to configure display for area measurements. |
LineSketchEditor | Gets or sets the sketch editor used for measuring distances. |
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. |
SelectedAreaUnit | Gets or sets the unit used to display for area measurements. |
SelectedLinearUnit | Gets or sets the unit used to display for distance measurements. |
SelectionFillSymbol | Gets or sets the symbol used for highlighting the polygon feature or graphic whose geometry is measured for area. |
SelectionLineSymbol | Gets or sets the symbol used for highlighting the polyline feature or graphic whose geometry is measured for distance. |
Methods
Name | Description |
---|---|
OnApplyTemplate() | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). |