Skip to main content
All docs
V26.1
  • MapSearchPanelOptions.Visible Property

    Gets or sets whether the search panel is visible.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v26.1.dll

    NuGet Package: DevExpress.Win.Map

    Declaration

    [DefaultValue(true)]
    public bool Visible { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true to show the search panel; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to Visible
    MapControl
    .SearchPanelOptions .Visible

    Example

    The following example configures the search panel options such as width, prompt message, and so on:

    Map search panel customization

    using DevExpress.XtraMap;
    
        private void OnFormLoad(object sender, EventArgs e) {
            // Enable search:
            InformationLayer infoLayer = new InformationLayer();
            mapControl1.Layers.Add(infoLayer);
            BingSearchDataProvider searchProvider = new BingSearchDataProvider();
            infoLayer.DataProvider = searchProvider;
            searchProvider.BingKey = bingKey;
    
            // Specify search panel options:
            mapControl1.SearchPanelOptions.Visible = true;
            mapControl1.SearchPanelOptions.ShowNullValuePrompt = true;
            mapControl1.SearchPanelOptions.NullValuePrompt = "Type a location to search...";
            mapControl1.SearchPanelOptions.MaxVisibleItemCount = 3;
            mapControl1.SearchPanelOptions.Width = 200;
        }
    

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

    See Also