Class Compass
The Compass Control showing the heading on the map when the rotation is not North up / 0.
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class Compass : Control
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 dependency property.
Declaration
public static readonly DependencyProperty AutoHideProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
GeoViewProperty
Identifies the GeoView Dependency Property.
Declaration
public static readonly DependencyProperty GeoViewProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HeadingProperty
Identifies the Heading dependency property.
Declaration
public static readonly DependencyProperty HeadingProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
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 |
Remarks
This property is read-only if the GeoView property is assigned.
Methods
| Improve this Doc View SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnTapped(TappedRoutedEventArgs)
Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
TappedRoutedEventArgs | e |