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/Chat/messages.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1314,9 +1314,9 @@ We have loaded a custom template if the message's text contains a particular tex
1314
1314
1315
1315

1316
1316
1317
-
### Template selector to return base template
1317
+
### Using ChatMessageTemplateSelector for custom templates
1318
1318
1319
-
Create a custom class that inherits from `ChatMessageTemplateSelector`, and override the `OnSelectTemplate` method to return the base template for that item.
1319
+
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.
0 commit comments