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
2 changes: 1 addition & 1 deletion MAUI/AIAssistView/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ The `SfAIAssistView` control includes a built-in event called [CardTapped](https

## Show error response

The `SfAIAssistView` allows to display error responses by setting the error text to the `AssistItem.ErrorMessage` property, ensuring clear notification when an error occurs during AI interactions.
The `SfAIAssistView` allows to display error responses by setting the error text to the [AssistItem.ErrorMessage](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.AIAssistView.IAssistItem.html#Syncfusion_Maui_AIAssistView_IAssistItem_ErrorMessage) property, ensuring clear notification when an error occurs during AI interactions.

{% tabs %}
{% highlight c# tabtitle="ViewModel.cs" hl_lines="36" %}
Expand Down
26 changes: 13 additions & 13 deletions MAUI/Chat/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ We have loaded a custom template if the message's text contains a particular tex

### Using ChatMessageTemplateSelector for custom templates

Create a custom class that extends `ChatMessageTemplateSelector` and override the `OnSelectTemplate` method to return either a custom template or default templates based on the message item.
Create a custom class that extends [ChatMessageTemplateSelector](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.ChatMessageTemplateSelector.html) and override the `OnSelectTemplate` method to return either a custom template or default templates based on the message item.

{% tabs %}
{% highlight c# tabtitle="MessageTemplateSelector.cs" %}
Expand Down Expand Up @@ -1373,18 +1373,18 @@ N> [View sample in GitHub](https://github.com/SyncfusionExamples/message-templat
## Customizable views

The `SfChat` allows you to target and fully customize views within the chat control. The following views can be targeted and customized:
- `IncomingMessageContentView` - Represents the incoming content view of the messages.
- `IncomingMessageAuthorView` - Represents incoming message author name area.
- `IncomingMessageAvatarView` - Represents incoming message avatar area.
- `IncomingMessageTimestampView` - Represents incoming message timestamp area.
- `OutgoingMessageContentView` - Represents the outgoing content view of the messages.
- `OutgoingMessageAuthorView` - Represents outgoing message author name area.
- `OutgoingMessageAvatarView` - Represents outgoing message avatar area.
- `OutgoingMessageTimestampView` - Represents outgoing message timestamp area.
- `CardButtonView` - Represents a class which contains the information about an card action button.
- `ChatImageView` - Represents the image view of the Image message.
- `MessageSuggestionView` - Represents a list view for displaying suggestions view specific to a message.
- `ChatSuggestionView` - Represents a list view for displaying chat suggestions.
- [IncomingMessageContentView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.IncomingMessageContentView.html) - Represents the incoming content view of the messages.
- [IncomingMessageAuthorView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.IncomingMessageAuthorView.html) - Represents incoming message author name area.
- [IncomingMessageAvatarView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.IncomingMessageAvatarView.html) - Represents incoming message avatar area.
- [IncomingMessageTimestampView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.IncomingMessageTimestampView.html) - Represents incoming message timestamp area.
- [OutgoingMessageContentView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.OutgoingMessageContentView.html) - Represents the outgoing content view of the messages.
- [OutgoingMessageAuthorView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.OutgoingMessageAuthorView.html) - Represents outgoing message author name area.
- [OutgoingMessageAvatarView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.OutgoingMessageAvatarView.html) - Represents outgoing message avatar area.
- [OutgoingMessageTimestampView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.OutgoingMessageTimestampView.html) - Represents outgoing message timestamp area.
- [CardButtonView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.CardButtonView.html) - Represents a class which contains the information about an card action button.
- [ChatImageView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.ChatImageView.html) - Represents the image view of the Image message.
- [MessageSuggestionView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.MessageSuggestionView.html) - Represents a list view for displaying suggestions view specific to a message.
- [ChatSuggestionView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.ChatSuggestionView.html) - Represents a list view for displaying chat suggestions.

{% tabs %}
{% highlight xaml hl_lines="15 31" %}
Expand Down
4 changes: 2 additions & 2 deletions MAUI/Chat/scrolling.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ By default, the [SfChat](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Cha

## Scroll to bottom button

The `SfChat` control provides the option to display a scroll to bottom button by setting the `ShowScrollToBottomButton` property to `true`. This button appears when scrolled up through older messages and allows quick navigation back to the latest message in the conversation.
The `SfChat` control provides the option to display a scroll to bottom button by setting the [ShowScrollToBottomButton](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.SfChat.html#Syncfusion_Maui_Chat_SfChat_ShowScrollToBottomButton) property to `true`. This button appears when scrolled up through older messages and allows quick navigation back to the latest message in the conversation.

{% tabs %}
{% highlight xaml hl_lines="4" %}
Expand All @@ -76,7 +76,7 @@ sfChat.ShowScrollToBottomButton = true;

### Scroll to bottom button customization

The `SfChat` control allows you to fully customize the scroll to bottom button appearance by using the `ScrollToBottomButtonTemplate` property. This property lets you define a custom view and style.
The `SfChat` control allows you to fully customize the scroll to bottom button appearance by using the [ScrollToBottomButtonTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Chat.SfChat.html#Syncfusion_Maui_Chat_SfChat_ScrollToBottomButtonTemplate) property. This property lets you define a custom view and style.

{% tabs %}
{% highlight xaml hl_lines="20" %}
Expand Down
6 changes: 4 additions & 2 deletions MAUI/TreeView/empty-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ documentation: ug

# Empty view in .NET MAUI TreeView (SfTreeView)

The `SfTreeView` control allows you to display and customize the empty view content when no data is available. The `EmptyView` property can be set to either a string or a view, and it will be displayed when the `ItemsSource` is empty or null, or the `Nodes` collection is empty. `EmptyViewTemplate` is used to customize the appearance of `EmptyView`.
The [SfTreeView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html) control allows you to display and customize the empty view content when no data is available. The [EmptyView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html#Syncfusion_Maui_TreeView_SfTreeView_EmptyView) property can be set to either a string or a view, and it will be displayed when the [ItemsSource](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html#Syncfusion_Maui_TreeView_SfTreeView_ItemsSource) is empty or null, or the [Nodes](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html#Syncfusion_Maui_TreeView_SfTreeView_Nodes) collection is empty. [EmptyViewTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html#Syncfusion_Maui_TreeView_SfTreeView_EmptyViewTemplate) is used to customize the appearance of `EmptyView`.

## Display a string when TreeView has no items

Expand Down Expand Up @@ -158,4 +158,6 @@ treeView.EmptyViewTemplate = new DataTemplate(() =>

N>
* The `EmptyViewTemplate` will only be applied when the `EmptyView` property is explicitly defined. If `EmptyView` is not set, the template will not be displayed.
* `EmptyView` can be set to custom data model and the appearance of the `EmptyView` can be customized by using the `EmptyViewTemplate`.
* `EmptyView` can be set to custom data model and the appearance of the `EmptyView` can be customized by using the `EmptyViewTemplate`.

N> [View sample in GitHub](https://github.com/SyncfusionExamples/how-to-display-empty-view-when-.net-maui-treeview-has-no-items)
14 changes: 8 additions & 6 deletions MAUI/TreeView/sorting.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ documentation: ug

# Sorting in .NET MAUI TreeView (SfTreeView)

The `SfTreeView` control provides built-in support for sorting data using the `SortDescriptors` property. Items can be sorted in either ascending or descending order. Custom sorting logic is also supported to sort the items.
The [SfTreeView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html) control provides built-in support for sorting data using the [SortDescriptors](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html#Syncfusion_Maui_TreeView_SfTreeView_SortDescriptors) property. Items can be sorted in either ascending or descending order. Custom sorting logic is also supported to sort the items.

## Programmatic sorting

Sort items by creating a `SortDescriptor` with the property name and sort direction, and then adding it to the `SortDescriptors` collection.
Sort items by creating a [SortDescriptor](https://help.syncfusion.com/cr/maui/Syncfusion.TreeView.Engine.SortDescriptor.html) with the property name and sort direction, and then adding it to the `SortDescriptors` collection.

`SortDescriptor` object holds the following three properties:

* `PropertyName`: Describes the name of the sorted property.
* `Direction`: Describes an object of type `TreeViewSortDirection` that defines the sorting direction.
* `Comparer`: Describes the comparer to be applied when sorting takes place.
* [PropertyName](https://help.syncfusion.com/cr/maui/Syncfusion.TreeView.Engine.SortDescriptor.html#Syncfusion_TreeView_Engine_SortDescriptor_PropertyName): Describes the name of the sorted property.
* [Direction](https://help.syncfusion.com/cr/maui/Syncfusion.TreeView.Engine.SortDescriptor.html#Syncfusion_TreeView_Engine_SortDescriptor_Direction): Describes an object of type [TreeViewSortDirection](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.TreeViewSortDirection.html) that defines the sorting direction.
* [Comparer](https://help.syncfusion.com/cr/maui/Syncfusion.TreeView.Engine.SortDescriptor.html#Syncfusion_TreeView_Engine_SortDescriptor_Comparer): Describes the comparer to be applied when sorting takes place.

{% tabs %}
{% highlight xaml hl_lines="4 5" %}
Expand Down Expand Up @@ -114,4 +114,6 @@ treeView.SortDescriptors.Clear();
{% endhighlight %}
{% endtabs %}

N> When the new collection is updated to the `ItemsSource`, the `SortDescriptors` should be cleared and reinitialized manually based on the requirements for sorting.
N> When the new collection is updated to the [ItemsSource](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.TreeView.SfTreeView.html#Syncfusion_Maui_TreeView_SfTreeView_ItemsSource) , the `SortDescriptors` should be cleared and reinitialized manually based on the requirements for sorting.

N> [View sample in GitHub](https://github.com/SyncfusionExamples/custom-sorting-in-.net-maui-treeview)