wpf-devexpress-dot-xpf-dot-map-dot-bingsearchoptions.md
Gets or sets the total number of results that can be obtained by a search request.
Namespace : DevExpress.Xpf.Map
Assembly : DevExpress.Xpf.Map.v25.2.dll
NuGet Package : DevExpress.Wpf.Map
public int ResultsCount { get; set; }
Public Property ResultsCount As Integer
| Type | Description |
|---|---|
| Int32 |
An integer value.
|
You can access this nested property as listed below:
| Object Type | Path to ResultsCount |
|---|---|
| BingSearchDataProvider |
.SearchOptions .ResultsCount
|
<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>
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ResultsCount 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.
wpf-map-process-search-with-a-custom-search-panel/CS/MapControl_SearchPanel/MainWindow.xaml#L43
DistanceUnit="{Binding ElementName=lbDistanceUnits, Path=SelectedValue}"
ResultsCount="{Binding ElementName=tbCount, Path=Value}">
</dxm:BingSearchOptions>
See Also