BingSearchOptions.ResultsCount Property

Gets or sets the total number of results that can be obtained by a search request.

Namespace: DevExpress.Xpf.Map

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

Declaration

public int ResultsCount { get; set; }
Public Property ResultsCount As Integer

Property Value

Type Description
Int32

An integer value.

Property Paths

You can access this nested property as listed below:

Object Type Path to ResultsCount
BingSearchDataProvider
.SearchOptions.ResultsCount

Examples

<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>
        <TextBox Name="tbCount" Grid.Row="1" Grid.Column="1" Margin="2,2,4,2" Padding="4">
            <TextBox.Text>
                <Binding NotifyOnValidationError="True" Path="ResultsCount" ElementName="options" Mode="TwoWay">
                    <Binding.ValidationRules>
                        <local:NonNegativeIntValidationRule/>
                    </Binding.ValidationRules>
                </Binding>
            </TextBox.Text>
        </TextBox>
See Also