Show / Hide Table of Contents

Class Compass

The Compass Control showing the heading on the map when the rotation is not North up / 0.

Inheritance
Object
Compass
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class Compass : Control

Constructors

| Improve this Doc View Source

Compass()

Initializes a new instance of the Compass class.

Declaration
public Compass()

Fields

| Improve this Doc View Source

AutoHideProperty

Identifies the AutoHide dependency property.

Declaration
public static readonly DependencyProperty AutoHideProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

GeoViewProperty

Identifies the GeoView Dependency Property.

Declaration
public static readonly DependencyProperty GeoViewProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

HeadingProperty

Identifies the Heading dependency property.

Declaration
public static readonly DependencyProperty HeadingProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

AutoHide

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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 Source

OnApplyTemplate()

Declaration
protected override void OnApplyTemplate()
| Improve this Doc View Source

OnTapped(TappedRoutedEventArgs)

Declaration
protected override void OnTapped(TappedRoutedEventArgs e)
Parameters
Type Name Description
TappedRoutedEventArgs e
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX