diff --git a/MAUI/AIAssistView/data-binding.md b/MAUI/AIAssistView/data-binding.md index 948dc03563..9044f52108 100644 --- a/MAUI/AIAssistView/data-binding.md +++ b/MAUI/AIAssistView/data-binding.md @@ -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. diff --git a/MAUI/AIAssistView/getting-started.md b/MAUI/AIAssistView/getting-started.md index 53e9f4be40..90cd3150d0 100644 --- a/MAUI/AIAssistView/getting-started.md +++ b/MAUI/AIAssistView/getting-started.md @@ -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. @@ -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" %}