Back to Devexpress

NavigationElementHorizontalAlignment Enum

wpf-devexpress-dot-xpf-dot-map-fdf67777.md

latest3.1 KB
Original Source

NavigationElementHorizontalAlignment Enum

Lists the values used to specify the horizontal alignment of map navigation elements (e.g. Zoom Trackbar, Scroll Buttons, etc.).

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public enum NavigationElementHorizontalAlignment
vb
Public Enum NavigationElementHorizontalAlignment

Members

NameDescription
Left

A navigation element is docked to the left edge of the map.

| | Right |

A navigation element is docked to the right edge of the map.

| | Center |

A navigation element is horizontally aligned to the center of the map.

|

The following properties accept/return NavigationElementHorizontalAlignment values:

Remarks

The values listed by the NavigationElementHorizontalAlignment enumeration are used to set the DevExpress.Xpf.Map.NavigationElementOptions.HorizontalAlignment property.

Example

The following example demonstrates how to customize the appearance, position and visibility of map navigation elements: Zoom Trackbar, Scroll Buttons, Scale Panel and Coordinates Panel.

View Example

xaml
<dxm:MapControl.ZoomTrackbarOptions>
    <dxm:ZoomTrackbarOptions Margin="16" Orientation="Horizontal" VerticalAlignment="Bottom" />
</dxm:MapControl.ZoomTrackbarOptions>
<dxm:MapControl.ScrollButtonsOptions>
    <dxm:ScrollButtonsOptions VerticalAlignment="Bottom" HorizontalAlignment="Right" />
</dxm:MapControl.ScrollButtonsOptions>
<dxm:MapControl.ScalePanelOptions>
    <dxm:ScalePanelOptions HorizontalAlignment="Right" VerticalAlignment="Bottom" Visible="False" />
</dxm:MapControl.ScalePanelOptions>
<dxm:MapControl.CoordinatesPanelOptions>
    <dxm:CoordinatesPanelOptions VerticalAlignment="Top" HorizontalAlignment="Right" />
</dxm:MapControl.CoordinatesPanelOptions>

See Also

DevExpress.Xpf.Map Namespace