Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions MAUI/AIAssistView/data-binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ To add an `AssistItem` to the `ViewModel.AssistItems` collection with specific v

2. The Assist item has the following members, which provides information for the request/response items,

* `Profile`: Provides information for the user details.
* `Text`: Describes the text content of the assist item (e.g., the request text from the user or the response text from the AI).
* `IsRequested`: When the assist item represents a user request, set the `IsRequested` property to `True`. If it's a response item from the AI service, set `IsRequested` to `False`.
* `DateTime`: To display item created or received time.
* `RequestItem`: Used to hold data (request item) associated with response item. Default value is `null`.
* `Profile`: Provides information for the user details.
* `Text`: Describes the text content of the assist item (e.g., the request text from the user or the response text from the AI).
* `IsRequested`: When the assist item represents a user request, set the `IsRequested` property to `True`. If it's a response item from the AI service, set `IsRequested` to `False`.
* `DateTime`: To display item created or received time.
* `RequestItem`: Used to hold data (request item) associated with response item. Default value is `null`.

3. After setting the properties, add the `AssistItem` instance to the `ViewModel.AssistItems` collection, which binds to the `SfAIAssistView.AssistItems` property.

Expand Down
6 changes: 2 additions & 4 deletions MAUI/AIAssistView/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Before proceeding, ensure the following are in place:
3. Select the project location, type the project name and press Enter.
4. Then choose **Create Project**.

## Step 2: Install the Syncfusion MAUI ListView NuGet Package
## Step 2: Install the Syncfusion MAUI AI AssistView NuGet Package

1. In **Solution Explorer**, right-click the project and choose **Manage NuGet Packages**.
2. Search for `Syncfusion.Maui.AIAssistView` and install the latest version.
Expand Down Expand Up @@ -107,9 +107,7 @@ namespace GettingStarted

## Step 5: Define the View Model

The `SfAIAssistView` control is data-bound and displays a collection of items exchanged between users and AI service. Hence, assist items should be created and bound to the control.

Create a simple `AssistItem` collection as shown in the following code example in a new class file. Save it as `ViewModel.cs` file.
Next, create a view model class and initialize the collection of `AssistItem` instance as follows

{% tabs %}
{% highlight c# tabtitle="ViewModel.cs" %}
Expand Down