{"id":"c6180292-6841-48e4-8a2f-01a9310d03f0","shortId":"dvbVHT","kind":"skill","title":"syncfusion-maui-chat","tagline":"Implements Syncfusion .NET MAUI Chat (SfChat) control in .NET MAUI applications. Use when working with chat interfaces, messaging UI, conversational interfaces, chat bubbles, or message threads. Covers message types (text, image, calendar, card), data binding, events, suggestions","description":"# Syncfusion .NET MAUI Chat (SfChat)\n\nThe Syncfusion .NET MAUI Chat control (`SfChat`) delivers a contemporary conversational UI for building chatbot interfaces, customer support screens, and multi-user messaging experiences. It supports rich message types, real-time typing indicators, suggestions, load-more history, swiping, and deep styling customization.\n\n## When to Use This Skill\n\n- Building a chat UI, chatbot interface, or messaging screen in .NET MAUI\n- Displaying conversations between two or more users\n- Sending/receiving text, images, cards, hyperlinks, or date/time picker messages\n- Implementing typing indicators, message suggestions, or load-more history\n- Customizing message appearance, shapes, delivery states, or themes\n- Adding swipe actions, time-break grouping, or attachment buttons\n- Localizing the chat UI or enabling accessibility features\n\n## Documentation and Navigation Guide\n\n### Getting Started\n📄 **Read:** [references/getting-started.md](references/getting-started.md)\n- NuGet installation (`Syncfusion.Maui.Chat`)\n- Handler registration in `MauiProgram.cs`\n- Basic `SfChat` initialization in XAML and C#\n- ViewModel setup with `Messages` and `CurrentUser`\n- Binding messages to the chat control\n- Running the application\n\n### Messages\n📄 **Read:** [references/messages.md](references/messages.md)\n- `TextMessage`, `DatePickerMessage`, `TimePickerMessage`, `CalendarMessage`\n- `HyperlinkMessage`, `ImageMessage`, `CardMessage`\n- Delivery states (`ShowDeliveryState`, `DeliveryState` enum, custom icons)\n- Pin message (`AllowPinning`, `PinnedMessages`, events, template)\n- Message template and `ChatMessageTemplateSelector`\n- Customizable incoming/outgoing views\n- Message spacing, shape, timestamp format, avatar/author visibility\n- Sending messages, keyboard, multiline input, hide input view\n\n### Data Binding\n📄 **Read:** [references/data-binding.md](references/data-binding.md)\n- Binding `ObservableCollection<object>` to `Messages`\n- `CurrentUser` differentiation of sender/receiver\n- Custom data models with `IMessage` / `ITextMessage`\n- `ItemsSourceConverter` for external model binding\n- Dynamically updating messages at runtime\n\n### Suggestions\n📄 **Read:** [references/suggestions.md](references/suggestions.md)\n- Chat-level suggestions (`SfChat.Suggestions`)\n- Message-level suggestions (`TextMessage.Suggestions`)\n- `SuggestionItemSelected` event and command\n- Customizing suggestion item templates\n\n### Typing Indicator\n📄 **Read:** [references/typing-indicator.md](references/typing-indicator.md)\n- Enabling the typing indicator (`ShowTypingIndicator`)\n- Setting author and message on `TypingIndicator`\n- Customizing appearance\n- Showing/hiding dynamically\n\n### Load More\n📄 **Read:** [references/load-more.md](references/load-more.md)\n- Enabling load more (`LoadMoreBehavior`)\n- `LoadMore` event and `LoadMoreCommand`\n- Loading older messages on scroll\n- `IsLazyLoading` property\n- Disabling after all messages are loaded\n\n### Events & Commands\n📄 **Read:** [references/events.md](references/events.md)\n- `SendMessage` / `SendMessageCommand`\n- `ImageTapped` / `ImageTappedCommand`\n- `CardTapped` / `CardCommand`\n- `SuggestionItemSelected`\n- `MessagePinned` / `MessageUnpinned`\n- `LoadMore` / `LoadMoreCommand`\n- Handling and cancelling event args\n\n### Styles & Appearance\n📄 **Read:** [references/styles.md](references/styles.md)\n- Incoming and outgoing message styling\n- Message input view styling\n- Time-break and typing indicator styling\n- Suggestion view styling\n- `MessageShape` options\n- Theme support (Material 3, Fluent)\n\n### Accessibility & Localization\n📄 **Read:** [references/accessibility-localization.md](references/accessibility-localization.md)\n- WCAG 2.0 compliance\n- Keyboard navigation and screen reader support\n- `AutomationId` for UI testing\n- Localization with `.resx` resource files\n- Supported localizable strings\n- RTL layout support\n\n### Scrolling\n📄 **Read:** [references/scrolling.md](references/scrolling.md)\n- Programmatic scroll to a specific message (`ScrollToMessage`)\n- Auto-scroll to bottom on new message (`CanAutoScrollToBottom`)\n- Scroll to bottom floating button (`ShowScrollToBottomButton`)\n- Customizing the scroll to bottom button (`ScrollToBottomButtonTemplate`)\n- `Scrolled` event and `ChatScrolledEventArgs` (`IsBottomReached`, `IsTopReached`, `ScrollOffset`)\n\n### Advanced Features\n📄 **Read:** [references/advanced-features.md](references/advanced-features.md)\n- Message swiping (left/right, `SwipeStarted`, `SwipeEnded`, swipe templates)\n- Time-break grouping (custom time-break template)\n- Attachment button (adding, customizing, `AttachmentButtonView`)\n- Liquid glass effect (enabling, platform support, customization)\n- `MessageSpacing` configuration\n- Hiding the message input view (`ShowMessageInputView`)\n\n---\n\n## Quick Start\n\n**1. Install the NuGet package:**\n```bash\ndotnet add package Syncfusion.Maui.Chat\n```\n\n**2. Register the handler in `MauiProgram.cs`:**\n```csharp\nusing Syncfusion.Maui.Core.Hosting;\n\nbuilder.ConfigureSyncfusionCore();\n```\n\n**3. Add `SfChat` in XAML:**\n```xml\n<ContentPage xmlns:sfChat=\"clr-namespace:Syncfusion.Maui.Chat;assembly=Syncfusion.Maui.Chat\"\n             xmlns:local=\"clr-namespace:MyApp\">\n    <ContentPage.BindingContext>\n        <local:ChatViewModel/>\n    </ContentPage.BindingContext>\n    <sfChat:SfChat Messages=\"{Binding Messages}\"\n                   CurrentUser=\"{Binding CurrentUser}\" />\n</ContentPage>\n```\n\n**4. Define the ViewModel:**\n```csharp\nusing Syncfusion.Maui.Chat;\n\npublic class ChatViewModel : INotifyPropertyChanged\n{\n    public ObservableCollection<object> Messages { get; set; }\n    public Author CurrentUser { get; set; }\n\n    public ChatViewModel()\n    {\n        CurrentUser = new Author { Name = \"Nancy\" };\n        Messages = new ObservableCollection<object>\n        {\n            new TextMessage\n            {\n                Author = CurrentUser,\n                Text = \"Hello! How can I help you today?\"\n            },\n            new TextMessage\n            {\n                Author = new Author { Name = \"Bot\", Avatar = \"bot.png\" },\n                Text = \"Hi Nancy! I am here to assist you.\"\n            }\n        };\n    }\n\n    public event PropertyChangedEventHandler PropertyChanged;\n}\n```\n\n---\n\n## Common Patterns\n\n### Sending a message and responding\n```csharp\n// In ViewModel\npublic ICommand SendMessageCommand => new Command<object>(OnSendMessage);\n\nprivate void OnSendMessage(object args)\n{\n    var e = args as SendMessageEventArgs;\n    \n    // ⚠️ IMPORTANT: By default, SfChat automatically adds the user's message to the \n    // Messages collection. Do NOT manually add it unless you set e.Handled = true\n    \n    // Add bot response after user sends message\n    MainThread.BeginInvokeOnMainThread(async () =>\n    {\n        await Task.Delay(500); // Simulate processing\n        Messages.Add(new TextMessage\n        {\n            Author = new Author { Name = \"Bot\", Avatar = \"bot.png\" },\n            Text = $\"You said: {e.Message.Text}\"\n        });\n    });\n}\n```\n\n**If you need full control over message addition, set `Handled = true`:**\n```csharp\nprivate void OnSendMessage(object args)\n{\n    var e = args as SendMessageEventArgs;\n    e.Handled = true; // Prevent SfChat from auto-adding the message\n    \n    // Now you must manually add the message\n    if (e.Message is TextMessage textMessage)\n    {\n        Messages.Add(textMessage); // You add it\n        \n        // Then handle response...\n    }\n}\n```\n\n### Adding quick reply suggestions\n```csharp\nMessages.Add(new TextMessage\n{\n    Author = new Author { Name = \"Bot\" },\n    Text = \"How would you like to proceed?\",\n    Suggestions = new ObservableCollection<ISuggestion>\n    {\n        new Suggestion { Text = \"Option A\" },\n        new Suggestion { Text = \"Option B\" }\n    }\n});\n```\n\n### Showing a typing indicator\n```csharp\nsfChat.ShowTypingIndicator = true;\nsfChat.TypingIndicator = new TypingIndicator\n{\n    Authors = new ObservableCollection<Author>\n    {\n        new Author { Name = \"Bot\", Avatar = \"bot.png\" }\n    },\n    Text = \"Bot is typing...\"\n};\n```\n\n---\n\n## Key Properties\n\n| Property | Type | Purpose |\n|---|---|---|\n| `Messages` | `ObservableCollection<object>` | Collection of all messages |\n| `CurrentUser` | `Author` | Identifies the local user (outgoing messages) |\n| `ShowTypingIndicator` | `bool` | Toggle typing indicator |\n| `TypingIndicator` | `TypingIndicator` | Set who is typing |\n| `ShowDeliveryState` | `bool` | Show sent/delivered/read/failed icons |\n| `AllowPinning` | `bool` | Enable message pinning |\n| `MessageShape` | `MessageShape` | Message bubble shape |\n| `MessageSpacing` | `double` | Vertical gap between messages |\n| `ShowMessageInputView` | `bool` | Show/hide the message editor |\n| `LoadMoreBehavior` | `LoadMoreOption` | Enable load-more on scroll |\n| `AllowMultilineInput` | `bool` | Allow multi-line message entry |\n| `ShowKeyboardAlways` | `bool` | Keep keyboard open after send |","tags":["syncfusion","maui","chat","components","skills","agent-skills"],"capabilities":["skill","source-syncfusion","skill-syncfusion-maui-chat","topic-agent-skills"],"categories":["maui-ui-components-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/syncfusion/maui-ui-components-skills/syncfusion-maui-chat","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add syncfusion/maui-ui-components-skills","source_repo":"https://github.com/syncfusion/maui-ui-components-skills","install_from":"skills.sh"}},"qualityScore":"0.476","qualityRationale":"deterministic score 0.48 from registry signals: · indexed on github topic:agent-skills · 53 github stars · SKILL.md body (8,962 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-22T00:56:05.918Z","embedding":null,"createdAt":"2026-04-18T22:15:07.762Z","updatedAt":"2026-04-22T00:56:05.918Z","lastSeenAt":"2026-04-22T00:56:05.918Z","tsv":"'1':506 '2':516 '2.0':400 '3':392,526 '4':532 '500':658 'access':159,394 'action':145 'ad':143,486,704,727 'add':513,527,628,640,647,711,722 'addit':682 'advanc':463 'allow':850 'allowmultilineinput':848 'allowpin':219,818 'appear':137,313,364 'applic':15,198 'arg':362,617,620,691,694 'assist':591 'async':655 'attach':151,484 'attachmentbuttonview':488 'author':307,549,557,565,577,579,664,666,735,737,770,774,795 'auto':435,703 'auto-ad':702 'auto-scrol':434 'automat':627 'automationid':408 'avatar':582,669,777 'avatar/author':235 'await':656 'b':759 'bash':511 'basic':177 'bind':39,190,246,250,268 'bool':803,814,819,835,849,857 'bot':581,648,668,739,776,780 'bot.png':583,670,778 'bottom':438,445,453 'break':148,379,477,482 'bubbl':27,826 'build':60,97 'builder.configuresyncfusioncore':525 'button':152,447,454,485 'c':183 'calendar':36 'calendarmessag':206 'canautoscrolltobottom':442 'cancel':360 'card':37,119 'cardcommand':352 'cardmessag':209 'cardtap':351 'chat':4,9,20,26,45,51,99,155,194,279 'chat-level':278 'chatbot':61,101 'chatmessagetemplateselector':226 'chatscrolledeventarg':459 'chatviewmodel':541,554 'class':540 'collect':636,790 'command':291,343,611 'common':597 'complianc':401 'configur':497 'contemporari':56 'control':11,52,195,679 'convers':24,57,110 'cover':31 'csharp':522,536,604,686,731,764 'currentus':189,254,550,555,566,794 'custom':63,91,135,215,258,292,312,449,479,487,495 'customiz':227 'data':38,245,259 'date/time':122 'datepickermessag':204 'deep':89 'default':625 'defin':533 'deliv':54 'deliveri':139,210 'deliveryst':213 'differenti':255 'disabl':336 'display':109 'document':161 'dotnet':512 'doubl':829 'dynam':269,315 'e':619,693 'e.handled':645,697 'e.message':715 'e.message.text':674 'editor':839 'effect':491 'enabl':158,301,321,492,820,842 'entri':855 'enum':214 'event':40,221,289,326,342,361,457,594 'experi':71 'extern':266 'featur':160,464 'file':416 'float':446 'fluent':393 'format':234 'full':678 'gap':831 'get':165,546,551 'glass':490 'group':149,478 'guid':164 'handl':358,684,725 'handler':173,519 'hello':568 'help':572 'hi':585 'hide':242,498 'histori':86,134 'hyperlink':120 'hyperlinkmessag':207 'icommand':608 'icon':216,817 'identifi':796 'imag':35,118 'imagemessag':208 'imagetap':349 'imagetappedcommand':350 'imessag':262 'implement':5,125 'import':623 'incom':368 'incoming/outgoing':228 'indic':81,127,297,304,382,763,806 'initi':179 'inotifypropertychang':542 'input':241,243,374,501 'instal':171,507 'interfac':21,25,62,102 'isbottomreach':460 'islazyload':334 'istopreach':461 'item':294 'itemssourceconvert':264 'itextmessag':263 'keep':858 'key':783 'keyboard':239,402,859 'layout':421 'left/right':470 'level':280,285 'like':744 'line':853 'liquid':489 'load':84,132,316,322,329,341,844 'load-mor':83,131,843 'loadmor':325,356 'loadmorebehavior':324,840 'loadmorecommand':328,357 'loadmoreopt':841 'local':153,395,412,798 'localiz':418 'mainthread.begininvokeonmainthread':654 'manual':639,710 'materi':391 'maui':3,8,14,44,50,108 'mauiprogram.cs':176,521 'messag':22,29,32,70,75,104,124,128,136,187,191,199,218,223,230,238,253,271,284,309,331,339,371,373,432,441,468,500,545,560,601,632,635,653,681,706,713,788,793,801,821,825,833,838,854 'message-level':283 'messagepin':354 'messages.add':661,719,732 'messageshap':387,823,824 'messagespac':496,828 'messageunpin':355 'model':260,267 'multi':68,852 'multi-lin':851 'multi-us':67 'multilin':240 'must':709 'name':558,580,667,738,775 'nanci':559,586 'navig':163,403 'need':677 'net':7,13,43,49,107 'new':440,556,561,563,575,578,610,662,665,733,736,748,750,755,768,771,773 'nuget':170,509 'object':616,690 'observablecollect':251,544,562,749,772,789 'older':330 'onsendmessag':612,615,689 'open':860 'option':388,753,758 'outgo':370,800 'packag':510,514 'pattern':598 'picker':123 'pin':217,822 'pinnedmessag':220 'platform':493 'prevent':699 'privat':613,687 'proceed':746 'process':660 'programmat':427 'properti':335,784,785 'propertychang':596 'propertychangedeventhandl':595 'public':539,543,548,553,593,607 'purpos':787 'quick':504,728 'read':167,200,247,275,298,318,344,365,396,424,465 'reader':406 'real':78 'real-tim':77 'references/accessibility-localization.md':397,398 'references/advanced-features.md':466,467 'references/data-binding.md':248,249 'references/events.md':345,346 'references/getting-started.md':168,169 'references/load-more.md':319,320 'references/messages.md':201,202 'references/scrolling.md':425,426 'references/styles.md':366,367 'references/suggestions.md':276,277 'references/typing-indicator.md':299,300 'regist':517 'registr':174 'repli':729 'resourc':415 'respond':603 'respons':649,726 'resx':414 'rich':74 'rtl':420 'run':196 'runtim':273 'said':673 'screen':65,105,405 'scroll':333,423,428,436,443,451,456,847 'scrolloffset':462 'scrolltobottombuttontempl':455 'scrolltomessag':433 'send':237,599,652,862 'sender/receiver':257 'sending/receiving':116 'sendmessag':347 'sendmessagecommand':348,609 'sendmessageeventarg':622,696 'sent/delivered/read/failed':816 'set':306,547,552,644,683,809 'setup':185 'sfchat':10,46,53,178,528,626,700 'sfchat.showtypingindicator':765 'sfchat.suggestions':282 'sfchat.typingindicator':767 'shape':138,232,827 'show':760,815 'show/hide':836 'showdeliveryst':212,813 'showing/hiding':314 'showkeyboardalway':856 'showmessageinputview':503,834 'showscrolltobottombutton':448 'showtypingind':305,802 'simul':659 'skill':96 'skill-syncfusion-maui-chat' 'source-syncfusion' 'space':231 'specif':431 'start':166,505 'state':140,211 'string':419 'style':90,363,372,376,383,386 'suggest':41,82,129,274,281,286,293,384,730,747,751,756 'suggestionitemselect':288,353 'support':64,73,390,407,417,422,494 'swipe':87,144,469,473 'swipeend':472 'swipestart':471 'syncfus':2,6,42,48 'syncfusion-maui-chat':1 'syncfusion.maui.chat':172,515,538 'syncfusion.maui.core.hosting':524 'task.delay':657 'templat':222,224,295,474,483 'test':411 'text':34,117,567,584,671,740,752,757,779 'textmessag':203,564,576,663,717,718,720,734 'textmessage.suggestions':287 'theme':142,389 'thread':30 'time':79,147,378,476,481 'time-break':146,377,475,480 'timepickermessag':205 'timestamp':233 'today':574 'toggl':804 'topic-agent-skills' 'true':646,685,698,766 'two':112 'type':33,76,80,126,296,303,381,762,782,786,805,812 'typingind':311,769,807,808 'ui':23,58,100,156,410 'unless':642 'updat':270 'use':16,94,523,537 'user':69,115,630,651,799 'var':618,692 'vertic':830 'view':229,244,375,385,502 'viewmodel':184,535,606 'visibl':236 'void':614,688 'wcag':399 'work':18 'would':742 'xaml':181,530 'xml':531","prices":[{"id":"796a5ea9-e761-471d-af70-dd6c94498a6e","listingId":"c6180292-6841-48e4-8a2f-01a9310d03f0","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"syncfusion","category":"maui-ui-components-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T22:15:07.762Z"}],"sources":[{"listingId":"c6180292-6841-48e4-8a2f-01a9310d03f0","source":"github","sourceId":"syncfusion/maui-ui-components-skills/syncfusion-maui-chat","sourceUrl":"https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-chat","isPrimary":false,"firstSeenAt":"2026-04-18T22:15:07.762Z","lastSeenAt":"2026-04-22T00:56:05.918Z"}],"details":{"listingId":"c6180292-6841-48e4-8a2f-01a9310d03f0","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"syncfusion","slug":"syncfusion-maui-chat","github":{"repo":"syncfusion/maui-ui-components-skills","stars":53,"topics":["agent-skills"],"license":null,"html_url":"https://github.com/syncfusion/maui-ui-components-skills","pushed_at":"2026-04-08T07:27:37Z","description":"Skills for Syncfusion .NET MAUI components. Enable AI-assisted development with comprehensive documentation, code examples, and best practices for 100+ UI controls including DataGrid, Charts, Scheduler, and more.","skill_md_sha":"ed2a43d7ff528f41e38e02ceda4d99ea2de0bdd1","skill_md_path":"skills/syncfusion-maui-chat/SKILL.md","default_branch":"master","skill_tree_url":"https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-chat"},"layout":"multi","source":"github","category":"maui-ui-components-skills","frontmatter":{"name":"syncfusion-maui-chat","description":"Implements Syncfusion .NET MAUI Chat (SfChat) control in .NET MAUI applications. Use when working with chat interfaces, messaging UI, conversational interfaces, chat bubbles, or message threads. Covers message types (text, image, calendar, card), data binding, events, suggestions, typing indicators, time breaks, and swiping actions."},"skills_sh_url":"https://skills.sh/syncfusion/maui-ui-components-skills/syncfusion-maui-chat"},"updatedAt":"2026-04-22T00:56:05.918Z"}}