Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavigationPanelOptions Class

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

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public class NavigationPanelOptions :
    MapNotificationOptions,
    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.

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;
}
See Also