Back to Devexpress

ZoomTrackbarOptions.Orientation Property

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

latest4.3 KB
Original Source

ZoomTrackbarOptions.Orientation Property

Gets or sets the zoom trackbar’s orientation. This is a dependency property.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public MapZoomTrackbarOrientation Orientation { get; set; }
vb
Public Property Orientation As MapZoomTrackbarOrientation

Property Value

TypeDescription
MapZoomTrackbarOrientation

A MapZoomTrackbarOrientation enumeration value that specifies the zoom trackbar’s orientation.

|

Available values:

NameDescription
Vertical

The Zoom Trackbar is painted from the top to the bottom.

| | Horizontal |

The Zoom Trackbar is painted from the left to the right.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Orientation
MapControl

.ActualZoomTrackbarOptions .Orientation

| | MapControl |

.ZoomTrackbarOptions .Orientation

|

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>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Orientation 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#L16

xml
<dxm:MapControl.ZoomTrackbarOptions>
    <dxm:ZoomTrackbarOptions Margin="16" Orientation="Horizontal" VerticalAlignment="Bottom" />
</dxm:MapControl.ZoomTrackbarOptions>

See Also

ZoomTrackbarOptions Class

ZoomTrackbarOptions Members

DevExpress.Xpf.Map Namespace