Class SearchView
View for searching with locators and custom search sources.
Namespace: Esri.ArcGISRuntime.Toolkit.Maui
Assembly: Esri.ArcGISRuntime.Toolkit.Maui.dll
Syntax
public class SearchView : TemplatedView, INotifyPropertyChanged
Constructors
| Improve this Doc View SourceSearchView()
Initializes a new instance of the SearchView class.
Declaration
public SearchView()
Fields
| Improve this Doc View SourceAllSourcesSelectTextProperty
Identifies the AllSourcesSelectText bindable property.
Declaration
public static readonly BindableProperty AllSourcesSelectTextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
EnableDefaultWorldGeocoderProperty
Identifies the EnableDefaultWorldGeocoder bindable property.
Declaration
public static readonly BindableProperty EnableDefaultWorldGeocoderProperty
Field Value
Type | Description |
---|---|
BindableProperty |
EnableIndividualResultDisplayProperty
Identifies the EnableIndividualResultDisplay bindable property.
Declaration
public static readonly BindableProperty EnableIndividualResultDisplayProperty
Field Value
Type | Description |
---|---|
BindableProperty |
EnableRepeatSearchHereButtonProperty
Identifies the EnableRepeatSearchHereButton bindable proeprty.
Declaration
public static readonly BindableProperty EnableRepeatSearchHereButtonProperty
Field Value
Type | Description |
---|---|
BindableProperty |
EnableResultListViewProperty
Identifies the EnableResultListView bindable property.
Declaration
public static readonly BindableProperty EnableResultListViewProperty
Field Value
Type | Description |
---|---|
BindableProperty |
GeoViewProperty
Identifies the GeoView bindable property.
Declaration
public static readonly BindableProperty GeoViewProperty
Field Value
Type | Description |
---|---|
BindableProperty |
MultipleResultZoomBufferProperty
Identifies the MultipleResultZoomBuffer bindable property.
Declaration
public static readonly BindableProperty MultipleResultZoomBufferProperty
Field Value
Type | Description |
---|---|
BindableProperty |
NoResultMessageProperty
Identifies the NoResultMessage bindable property.
Declaration
public static readonly BindableProperty NoResultMessageProperty
Field Value
Type | Description |
---|---|
BindableProperty |
RepeatSearchButtonTextProperty
Identifies the RepeatSearchButtonText bindable property.
Declaration
public static readonly BindableProperty RepeatSearchButtonTextProperty
Field Value
Type | Description |
---|---|
BindableProperty |
ResultTemplateProperty
Identifies the ResultTemplate bindable property.
Declaration
public static readonly BindableProperty ResultTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SearchViewModelProperty
Identifies the SearchViewModel bindable property.
Declaration
public static readonly BindableProperty SearchViewModelProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SuggestionGroupHeaderTemplateProperty
Identifies the SuggestionGroupHeaderTemplate bindable property.
Declaration
public static readonly BindableProperty SuggestionGroupHeaderTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
SuggestionTemplateProperty
Identifies the SuggestionTemplate bindable property.
Declaration
public static readonly BindableProperty SuggestionTemplateProperty
Field Value
Type | Description |
---|---|
BindableProperty |
Properties
| Improve this Doc View SourceAllSourcesSelectText
Gets or sets the text to show in the button for selecting all search sources.
Declaration
public string AllSourcesSelectText { get; set; }
Property Value
Type | Description |
---|---|
String |
ClearCommand
Gets a command that clears the current search.
Declaration
public ICommand ClearCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
EnableDefaultWorldGeocoder
Gets or sets a value indicating whether SearchViewModel will include the Esri World Geocoder service by default.
Declaration
public bool EnableDefaultWorldGeocoder { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
EnableIndividualResultDisplay
Gets or sets a value indicating whether the view will show the selected result. If false, the result list is hidden automatically when a result is selected.
Declaration
public bool EnableIndividualResultDisplay { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
See SelectedResult to display custom UI for the selected result.
EnableRepeatSearchHereButton
Gets or sets a value indicating whether a 'Repeat Search' button will be displayed when the user pans the map a sufficient amount after a search completes.
Declaration
public bool EnableRepeatSearchHereButton { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Some consumer applications will display this button in a separate area of the UI from the search bar, often centered over the map. This property is intended to allow hiding the default button if using a custom 'Repeat Search' implementation. See RepeatSearchHere() and IsEligibleForRequery to enable a custom button implementation.
EnableResultListView
Gets or sets a value indicating whether the default result list view will be shown.
Declaration
public bool EnableResultListView { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Set this value to false to enable a custom list presentation.
GeoView
Gets or sets the GeoView associated with this view.
Declaration
public GeoView? GeoView { get; set; }
Property Value
Type | Description |
---|---|
Nullable<GeoView> |
Remarks
If set, SearchView will add a graphics overlay for showing results, and will automatically navigate to show search results.
MultipleResultZoomBuffer
Gets or sets the buffer used when zooming to a set of results.
Declaration
public double MultipleResultZoomBuffer { get; set; }
Property Value
Type | Description |
---|---|
Double |
NoResultMessage
Gets or sets a message to show when a search completes with no results.
Declaration
public string NoResultMessage { get; set; }
Property Value
Type | Description |
---|---|
String |
RepeatSearchButtonText
Gets or sets the text to show in the 'Repeat search' button.
Declaration
public string RepeatSearchButtonText { get; set; }
Property Value
Type | Description |
---|---|
String |
RepeatSearchHereCommand
Gets a command that repeats the last search with new geometry.
Declaration
public ICommand RepeatSearchHereCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
ResultTemplate
Gets or sets the template used to display results.
Declaration
public DataTemplate? ResultTemplate { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DataTemplate> |
SearchCommand
Gets a command that starts a search with current parameters.
Declaration
public ICommand SearchCommand { get; }
Property Value
Type | Description |
---|---|
ICommand |
SearchViewModel
Gets or sets the viewmodel that implements core search behavior.
Declaration
public SearchViewModel SearchViewModel { get; set; }
Property Value
Type | Description |
---|---|
SearchViewModel |
SuggestionGroupHeaderTemplate
Gets or sets the template used to display the header that groups suggestion results by source.
Declaration
public DataTemplate? SuggestionGroupHeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DataTemplate> |
SuggestionTemplate
Gets or sets the template used to display suggestions.
Declaration
public DataTemplate? SuggestionTemplate { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DataTemplate> |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Declaration
protected override void OnApplyTemplate()