Class AssistSuggestion
Represents the AssistSuggestion class which contains properties for the suggestion items.
Inheritance
System.Object
AssistSuggestion
Implements
Namespace: Syncfusion.Maui.AIAssistView
Assembly: Syncfusion.Maui.AIAssistView.dll
Syntax
public class AssistSuggestion : BindableObject, ISuggestion
Constructors
AssistSuggestion()
Initializes a new instance of the AssistSuggestion class.
Declaration
public AssistSuggestion()
AssistSuggestion(String, ImageSource)
Initializes a new instance of the AssistSuggestion class.
Declaration
public AssistSuggestion(string text, ImageSource image)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The text to be displayed as a suggestion. |
Microsoft.Maui.Controls.ImageSource | image | The image to be displayed along with the suggestion text. |
Fields
ImageSourceProperty
Identifies the Image Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty ImageSourceProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
TextProperty
Identifies the Text Microsoft.Maui.Controls.BindableProperty.
Declaration
public static readonly BindableProperty TextProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
ImageSource
Gets or sets the image source associated with the suggestion.
Declaration
public ImageSource ImageSource { get; set; }
Property Value
Type |
---|
Microsoft.Maui.Controls.ImageSource |
Text
Gets or sets the text of the suggestion.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |