Back to Devexpress

NavigationPanelOptions Class

windowsforms-devexpress-dot-xtramap-721f2b7b.md

latest3.1 KB
Original Source

NavigationPanelOptions Class

Contains options that define the appearance, position and layout of the navigation panel element.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class NavigationPanelOptions :
    MapNotificationOptions,
    IMapStyleOwner,
    IUpdateSupportItem,
    ISupportObjectChanging
vb
Public Class NavigationPanelOptions
    Inherits MapNotificationOptions
    Implements IMapStyleOwner,
               IUpdateSupportItem,
               ISupportObjectChanging

The following members return NavigationPanelOptions objects:

Remarks

An object of NavigationPanelOptions class can be accessed using the MapControl.NavigationPanelOptions property.

Example

To customize a navigation panel, use the MapControl.NavigationPanelOptions property. Specify the required parameters of the NavigationPanelOptions object assigned to the property.

For example, to make the panel invisible, set the NavigationPanelOptions.Visible property to false.

csharp
private void Form1_Load(object sender, EventArgs e) {
    mapControl1.NavigationPanelOptions.XCoordinatePattern = "{CP}{D}.{M}.{S:4}";
    mapControl1.NavigationPanelOptions.YCoordinatePattern = "{CP}{D}.{M}.{S:4}";
    mapControl1.NavigationPanelOptions.ShowKilometersScale = false;
    mapControl1.NavigationPanelOptions.ShowMilesScale = false;
    mapControl1.NavigationPanelOptions.ShowScrollButtons = false;
}
vb
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
    mapControl1.NavigationPanelOptions.XCoordinatePattern = "{CP}{D}.{M}.{S:4}"
    mapControl1.NavigationPanelOptions.YCoordinatePattern = "{CP}{D}.{M}.{S:4}"
    mapControl1.NavigationPanelOptions.ShowKilometersScale = False
    mapControl1.NavigationPanelOptions.ShowMilesScale = False
    mapControl1.NavigationPanelOptions.ShowScrollButtons = False
End Sub

Inheritance

Object ViewStatePersisterCore BaseOptions MapNotificationOptions NavigationPanelOptions

See Also

NavigationPanelOptions Members

DevExpress.XtraMap Namespace