Compass Class

This documentation is no longer available on MSDN, however it is available as a CHM download.

Represents the compass control.

Namespace: Microsoft.Maps.MapControl.Navigation
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)

Usage

Syntax

'Declaration
<TemplatePartAttribute(Name:="EastButton", Type:=GetType(RadioButton))> _
<TemplatePartAttribute(Name:="NorthButton", Type:=GetType(RadioButton))> _
<TemplatePartAttribute(Name:="SouthButton", Type:=GetType(RadioButton))> _
<TemplatePartAttribute(Name:="WestButton", Type:=GetType(RadioButton))> _
<TemplatePartAttribute(Name:="ThumbElement", Type:=GetType(Thumb))> _
<TemplateVisualStateAttribute(Name:="Show", GroupName:="DirectionStates")> _
<TemplateVisualStateAttribute(Name:="NoShow", GroupName:="DirectionStates")> _
Public Class Compass
    Inherits Control
[TemplatePartAttribute(Name="EastButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name="NorthButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name="SouthButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name="WestButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name="ThumbElement", Type=typeof(Thumb))] 
[TemplateVisualStateAttribute(Name="Show", GroupName="DirectionStates")] 
[TemplateVisualStateAttribute(Name="NoShow", GroupName="DirectionStates")] 
public class Compass : Control
[TemplatePartAttribute(Name=L"EastButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name=L"NorthButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name=L"SouthButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name=L"WestButton", Type=typeof(RadioButton))] 
[TemplatePartAttribute(Name=L"ThumbElement", Type=typeof(Thumb))] 
[TemplateVisualStateAttribute(Name=L"Show", GroupName=L"DirectionStates")] 
[TemplateVisualStateAttribute(Name=L"NoShow", GroupName=L"DirectionStates")] 
public ref class Compass : public Control
/** @attribute TemplatePartAttribute(Name="EastButton", Type=System.Windows.Controls.RadioButton) */ 
/** @attribute TemplatePartAttribute(Name="NorthButton", Type=System.Windows.Controls.RadioButton) */ 
/** @attribute TemplatePartAttribute(Name="SouthButton", Type=System.Windows.Controls.RadioButton) */ 
/** @attribute TemplatePartAttribute(Name="WestButton", Type=System.Windows.Controls.RadioButton) */ 
/** @attribute TemplatePartAttribute(Name="ThumbElement", Type=System.Windows.Controls.Primitives.Thumb) */ 
/** @attribute TemplateVisualStateAttribute(Name="Show", GroupName="DirectionStates") */ 
/** @attribute TemplateVisualStateAttribute(Name="NoShow", GroupName="DirectionStates") */ 
public class Compass extends Control
TemplatePartAttribute(Name="EastButton", Type=System.Windows.Controls.RadioButton) 
TemplatePartAttribute(Name="NorthButton", Type=System.Windows.Controls.RadioButton) 
TemplatePartAttribute(Name="SouthButton", Type=System.Windows.Controls.RadioButton) 
TemplatePartAttribute(Name="WestButton", Type=System.Windows.Controls.RadioButton) 
TemplatePartAttribute(Name="ThumbElement", Type=System.Windows.Controls.Primitives.Thumb) 
TemplateVisualStateAttribute(Name="Show", GroupName="DirectionStates") 
TemplateVisualStateAttribute(Name="NoShow", GroupName="DirectionStates") 
public class Compass extends Control

Inheritance Hierarchy

System.Object
   System.Windows.DependencyObject
     System.Windows.UIElement
       System.Windows.FrameworkElement
         System.Windows.Controls.Control
          Microsoft.Maps.MapControl.Navigation.Compass
             Microsoft.Maps.MapControl.Navigation.MapControlCompass

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Target Platforms

See Also

Reference

Compass Members
Microsoft.Maps.MapControl.Navigation Namespace