Class SearchResult
Wraps a search result for display.
Implements
Namespace: Esri.ArcGISRuntime.Toolkit.UI.Controls
Assembly: Esri.ArcGISRuntime.Toolkit.WinUI.dll
Syntax
public class SearchResult : INotifyPropertyChanged
Constructors
| Improve this Doc View SourceSearchResult(String, String, ISearchSource, Nullable<GeoElement>, Nullable<Viewpoint>)
Initializes a new instance of the SearchResult class.
Declaration
public SearchResult(string title, string subtitle, ISearchSource owner, GeoElement? geoElement, Viewpoint? viewpoint)
Parameters
Type | Name | Description |
---|---|---|
String | title | Sets the DisplayTitle. |
String | subtitle | Sets the DisplaySubtitle. |
ISearchSource | owner | Sets the OwningSource. |
Nullable<GeoElement> | geoElement | Sets the GeoElement. |
Nullable<Viewpoint> | viewpoint | Sets the SelectionViewpoint. |
Properties
| Improve this Doc View SourceCalloutDefinition
Gets or sets the CalloutDefinition used to display the result.
Declaration
public CalloutDefinition? CalloutDefinition { get; set; }
Property Value
Type | Description |
---|---|
Nullable<CalloutDefinition> |
DisplaySubtitle
Gets or sets the subtitle that should be shown whenever the result is displayed.
Declaration
public string DisplaySubtitle { get; set; }
Property Value
Type | Description |
---|---|
String |
DisplayTitle
Gets or sets the title that should be shown whenever the result is displayed.
Declaration
public string DisplayTitle { get; set; }
Property Value
Type | Description |
---|---|
String |
GeoElement
Gets or sets the optional GeoElement for the result. This could be a graphic for a locator search, a feature for a feature layer search, or null if there is nothing to display on the map.
Declaration
public GeoElement? GeoElement { get; set; }
Property Value
Type | Description |
---|---|
Nullable<GeoElement> |
MarkerImage
Gets the image displayed for this result.
Declaration
public RuntimeImage? MarkerImage { get; }
Property Value
Type | Description |
---|---|
Nullable<RuntimeImage> |
MarkerImageData
Gets or sets the image displayed for this result, in a format useful for cross-platform scenarios.
Declaration
public byte[] MarkerImageData { get; set; }
Property Value
Type | Description |
---|---|
Byte[] |
MarkerImageSource
Gets the image displayed for this result, in a format useful for UWP.
Declaration
public ImageSource? MarkerImageSource { get; }
Property Value
Type | Description |
---|---|
Nullable<ImageSource> |
OwningSource
Gets the search source that created this result.
Declaration
public ISearchSource OwningSource { get; }
Property Value
Type | Description |
---|---|
ISearchSource |
SelectionViewpoint
Gets or sets the selection viewpoint for the result. Some search sources will return a viewpoint that should be used when a result is selected.
Declaration
public Viewpoint? SelectionViewpoint { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Viewpoint> |
Events
| Improve this Doc View SourcePropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |