Class Compass
The Compass Control showing the heading on the map when the rotation is not North up / 0.
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class Compass : TemplatedView, ICompass
Constructors
| Improve this Doc View SourceCompass()
Initializes a new instance of the Compass class.
Declaration
public Compass()
Fields
| Improve this Doc View SourceAutoHideProperty
Identifies the AutoHide bindable property.
Declaration
public static readonly BindableProperty AutoHideProperty
Field Value
Type | Description |
---|---|
BindableProperty |
GeoViewProperty
Identifies the GeoView Dependency Property.
Declaration
public static readonly BindableProperty GeoViewProperty
Field Value
Type | Description |
---|---|
BindableProperty |
HeadingProperty
Identifies the Heading bindable property.
Declaration
public static readonly BindableProperty HeadingProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceAutoHide
Gets or sets a value indicating whether to auto-hide the control when Heading is 0.
Declaration
public bool AutoHide { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
GeoView
Gets or sets the GeoView property that can be attached to a Compass control to accurately set the heading, instead of setting the Heading property directly.
Declaration
public GeoView? GeoView { get; set; }
Property Value
Type | Description |
---|---|
Nullable<GeoView> |
Heading
Gets or sets the Heading for the compass.
Declaration
public double Heading { get; set; }
Property Value
Type | Description |
---|---|
Double |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()