MapControl.NavigationPanelOptions Property

Provides access to the navigation panel options of a map control.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.1.dll

Declaration

public NavigationPanelOptions NavigationPanelOptions { get; }
Public ReadOnly Property NavigationPanelOptions As NavigationPanelOptions

Property Value

Type Description
NavigationPanelOptions

A NavigationPanelOptions object that contains the navigation panel settings.

Remarks

Use the NavigationPanelOptions property to access the navigation panel settings. After that, it becomes possible to control the visibility of navigation panel elements (e.g., NavigationPanelOptions.ShowScrollButtons, NavigationPanelOptions.ShowKilometersScale) and customize their appearance (e.g.,NavigationPanelOptions.CoordinatesStyle, NavigationPanelOptions.ScaleStyle).

Examples

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