Class Compass
The Compass Control showing the heading on the map when the rotation is not North up / 0.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(Esri_ArcGISRuntime_Toolkit_UI_Controls_BasemapGalleryWinRTTypeDetails))]
public class Compass : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<Control>
Constructors
| Name | Description |
|---|---|
| Compass() | Initializes a new instance of the Compass class. |
Fields
| Name | Description |
|---|---|
| AutoHideProperty | Identifies the AutoHide dependency property. |
| GeoViewProperty | Identifies the GeoView Dependency Property. |
| HeadingProperty | Identifies the Heading dependency property. |
Properties
| Name | Description |
|---|---|
| AutoHide | Gets or sets a value indicating whether to auto-hide the control when Heading is 0. |
| 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. |
| Heading | Gets or sets the Heading for the compass. |
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. |
| OnCreateAutomationPeer() | When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure. |
| OnMouseLeftButtonDown(MouseButtonEventArgs) | Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event. |
| OnTapped(TappedRoutedEventArgs) | Called before the Tapped event occurs. |