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

BingSearchOptions.AutocorrectQuery Property

OBSOLETE

Due to changing Bing SOAP API to REST API, several options are not supported now. Please refer to the https://msdn.microsoft.com/en-us/library/cc980922.aspx topic to learn more.

Gets or sets a value indicating whether it is necessary to automatically correct a search query.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

[Browsable(false)]
[Obsolete("Due to changing Bing SOAP API to REST API, several options are not supported now. Please refer to the https://msdn.microsoft.com/en-us/library/cc980922.aspx topic to learn more.")]
[PreferableMember("BingSearchOptions", "AutocorrectQuery", "Boolean")]
public bool AutocorrectQuery { get; set; }

#Property Value

Type Description
Boolean

true to automatically correct a query; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to AutocorrectQuery
BingSearchDataProvider
.SearchOptions .AutocorrectQuery

#Example

View Example

<dxm:InformationLayer.DataProvider>
    <dxm:BingSearchDataProvider x:Name="searchProvider" 
                                ShowSearchPanel="False"
                                BingKey="{Binding Source={StaticResource bingKey}}"
                                SearchCompleted="searchProvider_SearchCompleted">
        <dxm:BingSearchDataProvider.SearchOptions>
            <dxm:BingSearchOptions x:Name="options"
                                   AutocorrectQuery="{Binding ElementName=cbAutocorrect, Path=IsChecked}"
                                   DistanceUnit="{Binding ElementName=lbDistanceUnits, Path=SelectedValue}"
                                   ResultsCount="{Binding ElementName=tbCount, Path=Value}">
            </dxm:BingSearchOptions>
        </dxm:BingSearchDataProvider.SearchOptions>
    </dxm:BingSearchDataProvider>
</dxm:InformationLayer.DataProvider>

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