Back to Devexpress

MapElementOptions.HorizontalAlignment Property

wpf-devexpress-dot-xpf-dot-map-dot-mapelementoptions-61e7e275.md

latest2.3 KB
Original Source

MapElementOptions.HorizontalAlignment Property

Gets or sets the Map UI element’s horizontal position.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public NavigationElementHorizontalAlignment HorizontalAlignment { get; set; }
vb
Public Property HorizontalAlignment As NavigationElementHorizontalAlignment

Property Value

TypeDescription
NavigationElementHorizontalAlignment

The Map UI element’s horizontal position.

|

Available values:

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 code snippet (auto-collected from DevExpress Examples) contains a reference to the HorizontalAlignment property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-map-connect-to-openstreetmap/CS/MainWindow.xaml#L19

xml
<dxm:MapControl.ScrollButtonsOptions>
    <dxm:ScrollButtonsOptions VerticalAlignment="Bottom" HorizontalAlignment="Right" />
</dxm:MapControl.ScrollButtonsOptions>

See Also

MapElementOptions Class

MapElementOptions Members

DevExpress.Xpf.Map Namespace