You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MAUI/AIAssistView/data-binding.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,9 +90,9 @@ public class ViewModel : INotifyPropertyChanged
90
90
91
91
N> The `SfAIAssistView.AssistItems` property is of type `IList<IAssistItem>`. To ensure the [AssistItems](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_AssistItems) property functions correctly, it is recommended to use a collection property in the ViewModel with the same type, such as `ObservableCollection<IAssistItem>`.
92
92
93
-
## Binding Custom Model Collection
93
+
## Binding custom model collection
94
94
95
-
The `SfAIAssistView` control provides support for binding collection of custom data objects through the `ItemsSource` property. This feature allows users to use their own data objects with the control. The `ItemsSource` property binds a collection of custom data objects to the `SfAIAssistView` and each item in the collection will be converted to an `AssistItem` and displayed in the view. The `ItemsSourceConverter` property sets the converter used to transform data objects into assist items and vice versa.
95
+
The [SfAIAssistView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.html) control provides support for binding collection of custom data objects through the [ItemsSource](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_ItemsSource) property. This feature allows users to use their own data objects with the control. The `ItemsSource` property binds a collection of custom data objects to the `SfAIAssistView` and each item in the collection will be converted to an `AssistItem` and displayed in the view. The [ItemsSourceConverter](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_ItemsSourceConverter) property sets the converter used to transform data objects into assist items and vice versa.
96
96
97
97
{% tabs %}
98
98
{% highlight xaml hl_lines="15 16" %}
@@ -281,7 +281,7 @@ N> If you want your data objects to respond to property changes, then implement
281
281
{% endhighlight %}
282
282
{% endtabs %}
283
283
284
-
This converter must implement the `IAssistItemConverter` interface. Implement this interface to create a custom converter for the `ItemsSourceConverter` property.
284
+
This converter must implement the [IAssistItemConverter](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.IAssistItemConverter.html) interface. Implement this interface to create a custom converter for the `ItemsSourceConverter` property.
@@ -336,9 +336,11 @@ This converter must implement the `IAssistItemConverter` interface. Implement th
336
336
337
337
{% endhighlight %}
338
338
{% endtabs %}
339
-
339
+
340
340
N> The `Data` property in `AssistItem` holds a reference to the original data object which is used for data operations.
341
341
342
+
N> [View Sample in GitHub](https://github.com/SyncfusionExamples/custom-model-collection-in-.net-maui-aiassistview).
343
+
342
344
## Bind the RequestCommand property
343
345
344
346
The [SfAIAssistView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.html) control allows you to handle user requests by binding them to the [RequestCommand](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_RequestCommand) property. This command is triggered whenever the user sends a request in the assist view.
Copy file name to clipboardExpand all lines: MAUI/AIAssistView/emptyview.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,13 @@ control: AI AssistView
6
6
documentation: ug
7
7
---
8
8
9
-
# Empty view in .NET MAUI AI AssistView
9
+
# Empty View in .NET MAUI AI AssistView
10
10
11
-
The `AI AssistView` control allows you to display and customize the empty view content when no request or response has been added.
11
+
The [SfAIAssistView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.html) control allows you to display and customize the empty view content when no request or response has been added.
12
12
13
13
## Display empty view when AI AssistView has no items
14
14
15
-
The `EmptyView` property can also be set to a string or a view, which will be displayed when no request or response is available to display in the control.
15
+
The [EmptyView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_EmptyView) property can also be set to a string or a view, which will be displayed when no request or response is available to display in the control.
16
16
17
17
{% tabs %}
18
18
{% highlight xaml hl_lines="5" %}
@@ -42,9 +42,9 @@ public partial class MainPage : ContentPage
42
42
{% endhighlight %}
43
43
{% endtabs %}
44
44
45
-
## EmptyView Customization
45
+
## Empty view customization
46
46
47
-
The `SfAIAssistView` control allows you to fully customize the empty view appearance by using the `EmptyViewTemplate` property. This property lets you define a custom layout and style for the `EmptyView`.
47
+
The `SfAIAssistView` control allows you to fully customize the empty view appearance by using the [EmptyViewTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_EmptyViewTemplate) property. This property lets you define a custom layout and style for the `EmptyView`.
48
48
49
49
{% tabs %}
50
50
{% highlight xaml hl_lines="5 6" %}
@@ -165,3 +165,5 @@ The `SfAIAssistView` control allows you to fully customize the empty view appear
165
165
N>
166
166
* The `EmptyViewTemplate` will only be applied when the `EmptyView` property is explicitly defined. If `EmptyView` is not set, the template will not be displayed.
167
167
*`EmptyView` can be set to custom data model and the appearance of the `EmptyView` can be customized by using the `EmptyViewTemplate`.
168
+
169
+
N> [View Sample in GitHub](https://github.com/SyncfusionExamples/how-to-display-empty-view-when-.net-maui-aiassistview-has-no-data).
Next, create a view model class and initialize the collection of [AssistItem](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistItem.html) instance as follows
105
105
@@ -230,7 +230,7 @@ To populate AI AssistView, bind the assist items in ViewModel to [AssistItems](h
230
230
{% endhighlight %}
231
231
{% endtabs %}
232
232
233
-
## Step 6: Running the Application
233
+
## Step 6: Running the application
234
234
235
235
Press **F5** to build and run the application. Once compiled, the AI AssistView will be displayed with the data provided.
236
236
@@ -255,7 +255,7 @@ Before proceeding, ensure the following are in place:
255
255
3. Select the project location, type the project name and press **Enter.**
256
256
4. Then choose **Create project.**
257
257
258
-
## Step 2: Install the Syncfusion MAUI AI AssistView NuGet Package
258
+
## Step 2: Install the Syncfusion<sup>®</sup> MAUI AI AssistView NuGet package
259
259
260
260
1. In **Solution Explorer**, right-click the project and choose **Manage NuGet Packages**.
261
261
2. Search for [Syncfusion.Maui.AIAssistView](https://www.nuget.org/packages/Syncfusion.Maui.AIAssistView) and install the latest version.
@@ -294,7 +294,7 @@ namespace GettingStarted
294
294
{% endhighlight %}
295
295
{% endtabs %}
296
296
297
-
## Step 4: Add a Basic AI AssistView
297
+
## Step 4: Add a basic AI AssistView
298
298
299
299
1. To initialize the control, import the `Syncfusion.Maui.AIAssistView` namespace into your code.
Next, create a view model class and initialize the collection of [AssistItem](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistItem.html) instance as follows
333
333
@@ -458,7 +458,7 @@ To populate AI AssistView, bind the assist items in ViewModel to [AssistItems](h
458
458
{% endhighlight %}
459
459
{% endtabs %}
460
460
461
-
## Step 6: Running the Application
461
+
## Step 6: Running the application
462
462
463
463
Press **F5** to build and run the application. Once compiled, the AI AssistView will be displayed with the data provided.
464
464
@@ -478,13 +478,13 @@ Before proceeding, ensure the following are set up:
478
478
2. Install [.NET 8 SDK](https://dotnet.microsoft.com/en-us/download/dotnet/8.0) or later is installed.
479
479
3. Make sure the MAUI workloads are installed and configured as described [here.](https://www.jetbrains.com/help/rider/MAUI.html#before-you-start)
480
480
481
-
## Step 1: Create a new .NET MAUI Project
481
+
## Step 1: Create a new .NET MAUI project
482
482
483
483
1. Go to **File > New Solution,** Select .NET (C#) and choose the .NET MAUI App template.
484
484
2. Enter the Project Name, Solution Name, and Location.
485
485
3. Select the .NET framework version and click Create.
486
486
487
-
## Step 2: Install the Syncfusion<sup>®</sup> MAUI AI AssistView NuGet Package
487
+
## Step 2: Install the Syncfusion<sup>®</sup> MAUI AI AssistView NuGet package
488
488
489
489
1. In **Solution Explorer,** right-click the project and choose **Manage NuGet Packages.**
490
490
2. Search for [Syncfusion.Maui.AIAssistView](https://www.nuget.org/packages/Syncfusion.Maui.AIAssistView/) and install the latest version.
@@ -523,7 +523,7 @@ namespace GettingStarted
523
523
{% endhighlight %}
524
524
{% endtabs %}
525
525
526
-
## Step 4: Add a Basic AI AssistView
526
+
## Step 4: Add a basic AI AssistView
527
527
528
528
1. To initialize the control, import the `Syncfusion.Maui.AIAssistView` namespace into your code.
The [IsRequested](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistItem.html#Syncfusion_Maui_AIAssistView_AssistItem_IsRequested) property is used to determine whether a item is a Request or a Response. If `IsRequested` property is set to `true`, the item is a Request item.
Copy file name to clipboardExpand all lines: MAUI/AIAssistView/header.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ control: SfAIAssistView
7
7
documentation: ug
8
8
---
9
9
10
-
# Header customization in .NET MAUI AI AssistView (SfAIAssistView)
10
+
# Header Customization in .NET MAUI AI AssistView (SfAIAssistView)
11
11
12
12
This section explains how to define and customize the header in the [SfAIAssistView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.html).
Copy file name to clipboardExpand all lines: MAUI/AIAssistView/styles.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1043,7 +1043,7 @@ public MainPage()
1043
1043
1044
1044

1045
1045
1046
-
## Text Selection styling
1046
+
## Text selection styling
1047
1047
1048
1048
To modify the highlight color of selected text, you need to update the value associated with the built-in key `SfAIAssistViewSelectionTextHighLightColor` in the resource dictionary.
1049
1049
@@ -1091,7 +1091,7 @@ public MainPage()
1091
1091
1092
1092

1093
1093
1094
-
## Common Suggestions styling
1094
+
## Common suggestions styling
1095
1095
1096
1096
To style the common suggestion view based on its appearance, set values to the in-built keys in the resource dictionary.
Copy file name to clipboardExpand all lines: MAUI/AIAssistView/suggestions.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,17 @@ documentation: ug
9
9
10
10
# Working with Suggestions in .NET MAUI AI AssistView (SfAIAssistView)
11
11
12
-
## Common Suggestions
12
+
## Common suggestions
13
13
14
14
The `SfAIAssistView` control allows users to view a list of common suggestions to choose from. These suggestions offer recommendations, helpful tips, and guides for various tasks and topics.
15
15
16
16
By providing assistance and encouraging the exploration of new ideas, the common suggestions feature is designed to make interactions more productive and enjoyable.
17
17
18
-
### Displaying Common Suggestions
18
+
### Displaying common suggestions
19
19
20
20
Common Suggestions can be populated by creating list of [AssistSuggestion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistSuggestion.html) and assigning it to [Suggestions](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_Suggestions) API. It will be displayed under the header as part of header view.
21
21
22
-
#### View Model
22
+
#### View model
23
23
Create a simple view model as shown in the following code example, and save it as `GettingStartedViewModel.cs` file.
24
24
25
25
{% tabs %}
@@ -59,7 +59,7 @@ public class GettingStartedViewModel : INotifyPropertyChanged
59
59
{% endhighlight %}
60
60
{% endtabs %}
61
61
62
-
#### Binding Suggestions to SfAIAssistView
62
+
#### Binding suggestions to SfAIAssistView
63
63
To populate the Suggestions, bind the item collection from its BindingContext to `SfAIAssistView.Suggestions` property.
64
64
65
65
{% tabs %}
@@ -111,7 +111,7 @@ public partial class MainPage : ContentPage
111
111
112
112
N> To view [Suggestions](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_Suggestions), it is mandatory to set [ShowHeader](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_ShowHeader) API to `true`.
113
113
114
-
### Suggestion Customization
114
+
### Suggestion customization
115
115
116
116
The `SfAIAssistView` control allows you to fully customize the suggestions appearance by using the [SuggestionTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_SuggestionTemplate) property. This property lets you define a custom layout and style for the suggestion items.
117
117
@@ -168,11 +168,11 @@ public partial class MainPage : ContentPage
168
168
169
169

170
170
171
-
## ResponseItem Suggestions
171
+
## ResponseItem suggestions
172
172
173
173
The [SfAIAssistView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html) control enables the display of a list of suggestions for users to select from. Suggestions are supported for all response item types in `SfAIAssistView`.
174
174
175
-
### Displaying ResponseItem Suggestions
175
+
### Displaying ResponseItem suggestions
176
176
177
177
Suggestions are displayed by creating an instance of [AssistSuggestion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistSuggestion.html) and assigning it to the item's [Suggestion](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistItem.html#Syncfusion_Maui_AIAssistView_AssistItem_Suggestion) property.
178
178
@@ -344,7 +344,7 @@ The [AssistItemSuggestion.Orientation](https://help.syncfusion.com/cr/maui/Syncf
344
344
{% endhighlight %}
345
345
{% endtabs %}
346
346
347
-
#### Changing the Item spacing of suggestions
347
+
#### Changing the item spacing of suggestions
348
348
349
349
The [AssistItemSuggestion.ItemSpacing](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.AssistItemSuggestion.html#Syncfusion_Maui_AIAssistView_AssistItemSuggestion_ItemSpacing) property allows you to display suggestions with Spacing. By, default, the spacing is 8.
350
350
@@ -384,7 +384,7 @@ The [AssistItemSuggestion.ItemSpacing](https://help.syncfusion.com/cr/maui/Syncf
384
384
{% endhighlight %}
385
385
{% endtabs %}
386
386
387
-
### ResponseItem Suggestion Customization
387
+
### Response item suggestion customization
388
388
The `SfAIAssistView` control allows you to fully customize the appearance of the response suggestion items using the [ResponseSuggestionTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.SfAIAssistView.html#Syncfusion_Maui_AIAssistView_SfAIAssistView_ResponseSuggestionTemplate) property. This property lets you define a custom layout and style for the suggestion item UI.
0 commit comments