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.v21.2.dll
NuGet Package: DevExpress.Wpf.Map
Declaration
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 |
|
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>
<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