BingSearchOptions.DistanceUnit Property

Obsolete. Gets or sets a value that defines how to measure distances.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v20.1.dll

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", "DistanceUnit", "DistanceMeasureUnit")]
public DistanceMeasureUnit DistanceUnit { get; set; }
<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", "DistanceUnit", "DistanceMeasureUnit")>
Public Property DistanceUnit As DistanceMeasureUnit

Property Value

Type Description
DistanceMeasureUnit

A DistanceMeasureUnit enumeration value.

Property Paths

You can access this nested property as listed below:

Object Type Path to DistanceUnit
BingSearchDataProvider
.SearchOptions.DistanceUnit

Examples

<ObjectDataProvider x:Key="distanceUnits"
    ObjectType="{x:Type sys:Enum}"  MethodName="GetValues">
    <ObjectDataProvider.MethodParameters>
        <x:Type TypeName="dxm:DistanceMeasureUnit"/>
    </ObjectDataProvider.MethodParameters>
</ObjectDataProvider>
        <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>
See Also