MapLayer Members

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

Represents a map layer, which positions its child UIElement objects using geographic coordinates.

The following tables list the members exposed by the MapLayer type.

Public Constructors

  Name Description
MapLayer Initializes a new instance of the MapLayer class.

Top

Public Fields

  Name Description
public fieldstatic PositionOffsetProperty Identifies the PositionOffset dependency property.
public fieldstatic PositionOriginProperty Identifies the PositionOrigin dependency property.
public fieldstatic PositionProperty Identifies the Position dependency property.
public fieldstatic PositionRectangleProperty Identifies the PositionRectangle dependency property.

Top

Public Properties

  Name Description
public property ActualHeight  (inherited from FrameworkElement)
public property ActualWidth  (inherited from FrameworkElement)
public property Background  (inherited from Panel)
public property CacheMode  (inherited from UIElement)
public property Children  (inherited from Panel)
public property Clip  (inherited from UIElement)
public property Cursor  (inherited from FrameworkElement)
public property DataContext  (inherited from FrameworkElement)
public property DesiredSize  (inherited from UIElement)
public property Dispatcher  (inherited from DependencyObject)
public property Effect  (inherited from UIElement)
public property Height  (inherited from FrameworkElement)
public property HorizontalAlignment  (inherited from FrameworkElement)
public property IsHitTestVisible  (inherited from UIElement)
public property IsItemsHost  (inherited from Panel)
public property Language  (inherited from FrameworkElement)
public property Margin  (inherited from FrameworkElement)
public property MaxHeight  (inherited from FrameworkElement)
public property MaxWidth  (inherited from FrameworkElement)
public property MinHeight  (inherited from FrameworkElement)
public property MinWidth  (inherited from FrameworkElement)
public property Name  (inherited from FrameworkElement)
public property Opacity  (inherited from UIElement)
public property OpacityMask  (inherited from UIElement)
public property Parent  (inherited from FrameworkElement)
public property ParentMap Gets the parent map of the map layer.
public propertystatic Position Gets the position of the map layer.
public propertystatic PositionOffset Gets the offset of a layer from the position calculated by the map projection, in pixels.
public propertystatic PositionOrigin Gets the position origin of the map layer.
public propertystatic PositionRectangle Gets a LocationRect that UIElement objects are fit into (also known as “arranging”).
public property Projection  (inherited from UIElement)
public property RenderSize  (inherited from UIElement)
public property RenderTransform  (inherited from UIElement)
public property RenderTransformOrigin  (inherited from UIElement)
public property Resources  (inherited from FrameworkElement)
public property Style  (inherited from FrameworkElement)
public property Tag  (inherited from FrameworkElement)
public property Triggers  (inherited from FrameworkElement)
public property UseLayoutRounding  (inherited from UIElement)
public property VerticalAlignment  (inherited from FrameworkElement)
public property Visibility  (inherited from UIElement)
public property Width  (inherited from FrameworkElement)

Top

Public Methods

(see also Protected Methods)

  Name Description
public method AddChild Overloaded. Overridden. Adds a UIElement to the map layer.
public method AddHandler  (inherited from UIElement)
public method Arrange  (inherited from UIElement)
public method CaptureMouse  (inherited from UIElement)
public method CheckAccess  (inherited from DependencyObject)
public method ClearValue  (inherited from DependencyObject)
public method Equals  (inherited from Object)
public method FindName  (inherited from FrameworkElement)
public method GetAnimationBaseValue  (inherited from DependencyObject)
public method GetBindingExpression  (inherited from FrameworkElement)
public method GetHashCode  (inherited from Object)
public methodstatic GetPosition Retrieves the map layer’s position.
public methodstatic GetPositionOffset Retrieves the offset of a layer from the position calculated by the map projection, in pixels.
public methodstatic GetPositionOrigin Retrieves the map layer’s position origin.
public methodstatic GetPositionRectangle Retrieves a LocationRect that UIElement objects of the layer are fit into (also known as “arranging”).
public method GetType  (inherited from Object)
public method GetValue  (inherited from DependencyObject)
public method InvalidateArrange  (inherited from UIElement)
public method InvalidateMeasure  (inherited from UIElement)
public method Measure  (inherited from UIElement)
public method OnApplyTemplate  (inherited from FrameworkElement)
public methodstatic OnPositionChanged Enables the ability to provide custom handling when the Position of the layer changes.
public methodstatic OnPositionOffsetChanged Enables the ability to provide custom handling when the PositionOffset of the layer changes.
public methodstatic OnPositionOriginChanged Enables the ability to provide custom handling when the PositionOrigin of the layer changes.
public methodstatic OnPositionRectangleChanged Enables the ability to provide custom handling when the PositionRectangle of the layer changes.
public method ProjectionUpdated Updates the map layer elements if the map projection is updated.
public method ReadLocalValue  (inherited from DependencyObject)
public method ReleaseMouseCapture  (inherited from UIElement)
public method RemoveHandler  (inherited from UIElement)
public method SetBinding  (inherited from FrameworkElement)
public methodstatic SetPosition Sets the position of the map layer.
public methodstatic SetPositionOffset Sets the position offset of the map layer.
public methodstatic SetPositionOrigin Sets the position of the origin of the map layer.
public methodstatic SetPositionRectangle Sets the position rectangle of the map layer.
public method SetValue  (inherited from DependencyObject)
public method ToString  (inherited from Object)
public method TransformToVisual  (inherited from UIElement)
public method UpdateLayout  (inherited from UIElement)

Top

Protected Methods

  Name Description
protected method ArrangeOverride Overridden. Arranges the child elements so that they fit into the map layer.
protected method Finalize  (inherited from Object)
protected method MeasureOverride Overridden. Measures the elements that need to fit into the map layer.
protected method MemberwiseClone  (inherited from Object)
protected method OnCreateAutomationPeer Overridden. Enables the ability to provide custom handling when an automation peer is created.

Top

Public Events

  Name Description
public event BindingValidationError  (inherited from FrameworkElement)
public event GotFocus  (inherited from UIElement)
public event KeyDown  (inherited from UIElement)
public event KeyUp  (inherited from UIElement)
public event LayoutUpdated  (inherited from FrameworkElement)
public event Loaded  (inherited from FrameworkElement)
public event LostFocus  (inherited from UIElement)
public event LostMouseCapture  (inherited from UIElement)
public event MouseEnter  (inherited from UIElement)
public event MouseLeave  (inherited from UIElement)
public event MouseLeftButtonDown  (inherited from UIElement)
public event MouseLeftButtonUp  (inherited from UIElement)
public event MouseMove  (inherited from UIElement)
public event MouseWheel  (inherited from UIElement)
public event SizeChanged  (inherited from FrameworkElement)

Top

See Also

Reference

MapLayer Class
Microsoft.Maps.MapControl Namespace

Other Resources

Adding Shapes to the Map
Adding Media to the Map
Adding Tile Overlays to the Map