Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
36ee11b
Merge pull request #1456 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild Apr 22, 2026
82b8d2c
Merge pull request #1457 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild Apr 22, 2026
3c9f418
Merge pull request #1463 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild May 5, 2026
7035e72
Merge pull request #1466 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild May 12, 2026
c221e4c
Added new UI composer skill content to Winforms
Sasidharan-Selvakumar May 14, 2026
d389896
Updated content to resolve CI
Sasidharan-Selvakumar May 14, 2026
e009ac8
updated title
Sasidharan-Selvakumar May 14, 2026
1583dbd
Update WindowsForms-toc.html
Sasidharan-Selvakumar May 14, 2026
1ee976f
Merge pull request #1467 from syncfusion-content/UI-skill-builder-wf
thangapriyavalasubramanian May 14, 2026
2381695
Updated skills UG
umanagarajan12 May 15, 2026
77f5092
updated corrections
umanagarajan12 May 15, 2026
aa62cf8
updated corrections
umanagarajan12 May 15, 2026
8494975
resolved ci error
umanagarajan12 May 15, 2026
fb037b9
resolved ci issue
umanagarajan12 May 15, 2026
1a42579
fixed toc error
umanagarajan12 May 15, 2026
224ad8a
added path in toc
umanagarajan12 May 15, 2026
7a307e6
updated corrections
umanagarajan12 May 15, 2026
1896d6f
updated corrections
umanagarajan12 May 15, 2026
6d507bf
Merge pull request #1469 from syncfusion-content/SkillUpdatesDev
durga-muthu May 18, 2026
2e420c7
Removed file reference from toc file
umanagarajan12 May 18, 2026
d43dee9
added agent image
umanagarajan12 May 18, 2026
3d4a40a
added reference in toc
umanagarajan12 May 18, 2026
2497a73
updated navigation structure in AI files
umanagarajan12 May 18, 2026
e5135e0
corrected skill name
umanagarajan12 May 18, 2026
d3b8a50
Merge pull request #1470 from syncfusion-content/SkillUpdatesDev
durga-muthu May 18, 2026
635eb40
Renamed Composer to Builder
umanagarajan12 May 20, 2026
920ddde
Merge pull request #1474 from syncfusion-content/ComposerRenameUpdateDev
thangapriyavalasubramanian May 20, 2026
bd682e5
Merge pull request #1473 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild May 25, 2026
227618b
Merge pull request #1480 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild May 26, 2026
d540dab
Rename 'WinForms UI Builder Skill' to 'UI Builder Skill'
umanagarajan12 May 27, 2026
dd3e11b
Merge pull request #1482 from syncfusion-content/HeaderRenameTOCDev
thangapriyavalasubramanian May 27, 2026
e4584e6
Merge pull request #1483 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild May 27, 2026
5858cf0
Added ai-powered-development.md
umanagarajan12 Jun 10, 2026
3c850db
Update link for AI and Smart Tooling section
umanagarajan12 Jun 10, 2026
197d3be
added package identification
umanagarajan12 Jun 10, 2026
5fa09b3
Merge pull request #1488 from syncfusion-content/AIToolsAddition
thangapriyavalasubramanian Jun 11, 2026
2e6cfb0
Merge pull request #1492 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild Jun 13, 2026
3be6c44
FT-Link: Updated the .md files to include the WF DataGrid control's F…
GowthamabalajiSambathSF4978 Jun 16, 2026
b45b3f7
FT-Link: Updated the .md files to include the WF DataGrid control's F…
GowthamabalajiSambathSF4978 Jun 16, 2026
aa8c7b7
Merge pull request #1496 from syncfusion-content/FT-Link
ChidanandMurugaiah Jun 17, 2026
e975b10
Merge pull request #1495 from syncfusion-content/FT-Link_HF
ChidanandMurugaiah Jun 17, 2026
48ed421
Task 1034350: Prepare User Guide for Response Toolbar and Stop Respon…
SrikanthSF4944 Jun 17, 2026
c83307e
Task 1034350: Prepare User Guide for Response Toolbar and Stop Respon…
SrikanthSF4944 Jun 18, 2026
397da6e
Merge pull request #1501 from Syncfusion-Content/hotfix/hotfix-v33.2.3
SyncfusionBuild Jun 18, 2026
d88500c
Task 1034350: Response Toolbar and Stop Responding Features - added i…
SrikanthSF4944 Jun 19, 2026
b9bc46e
Merge branch 'development' of https://github.com/syncfusion-content/w…
SrikanthSF4944 Jun 19, 2026
3e3d49d
Revert "Merge branch 'development' of https://github.com/syncfusion-c…
SrikanthSF4944 Jun 19, 2026
5f26c30
Task 1034350: Prepare UG for Response Toolbar and Stop Responding Fea…
SrikanthSF4944 Jun 19, 2026
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
6 changes: 6 additions & 0 deletions WindowsForms-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -4262,6 +4262,12 @@
<li>
<a href="/windowsforms/AI-AssistView/typing-indicator">Typing Indicator</a>
</li>
<li>
<a href="/windowsforms/AI-AssistView/stop-responding">Stop-Responding</a>
</li>
<li>
<a href="/windowsforms/AI-AssistView/response-toolbar">Response-ToolBar</a>
</li>
<li>
<a href="/windowsforms/AI-AssistView/events">Events</a>
</li>
Expand Down
197 changes: 197 additions & 0 deletions WindowsForms/AI-AssistView/Response-ToolBar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
---
layout: post
title: Response Toolbar in Windows Forms AI AssistView control | Syncfusion
description: Learn about the Response Toolbar in AI AssistView, letting users interact with bot replies using copy, regenerate, like, and custom action buttons.
platform: windowsforms
control: SfAIAssistView
documentation: ug
---

# Response ToolBar in WinForms AI AssistView

The **SfAIAssistView** control includes a **Response Toolbar** feature that allows users to perform actions on bot responses by clicking action buttons. This feature provides an interactive way for users to engage with AI responses through copy, regenerate, like, and other custom actions.

## IsResponseToolBarVisible

By default, the **Response Toolbar** is not displayed. To enable it, set the **IsResponseToolBarVisible** property to `true`.

{% tabs %}

{% highlight c# %}

SfAIAssistView sfaiAssistView1 = new SfAIAssistView();
sfaiAssistView1.IsResponseToolBarVisible = true;

{% endhighlight %}

{% endtabs %}
![WindowsForms AI AssistView control Response ToolBar](aiassistview_images/windowsforms-aiassistview-responsetoolbar.png)


## Response Toolbar Items

The **Response Toolbar** supports the following action buttons:

- **Copy** - Copies the bot response text to clipboard
- **Regenerate** - Regenerates the response for the same prompt
- **Like** - Marks the response as helpful/liked
- **Dislike** - Marks the response as not helpful
- **Custom** - User-defined custom actions

## Response Toolbar Item Click Event

The **SfAIAssistView** control provides the **ResponseToolBarItemClicked** event. This is triggered when a user clicks any toolbar action button. You can handle these actions to perform specific operations based on the toolbar item clicked.

### Event Handler Code Example

{% tabs %}

{% highlight c# %}

sfaiAssistView1.ResponseToolBarItemClicked += SfaiAssistView1_ResponseToolBarItemClicked;

private void SfaiAssistView1_ResponseToolBarItemClicked(
object sender,
ResponseToolBarItemClickedEventArgs e)
{
// Handle the toolbar item click
if (e.ToolBarItem.ItemType == ResponseToolBarItemType.Copy)
{
Clipboard.SetText(e.ChatItem.Text);
MessageBox.Show("Message copied to clipboard!");
}
else if (e.ToolBarItem.ItemType == ResponseToolBarItemType.Regenerate)
{
MessageBox.Show("Regenerating response...");
// Handle regeneration logic
}
else if (e.ToolBarItem.ItemType == ResponseToolBarItemType.Like)
{
MessageBox.Show("Response marked as helpful!");
}
}

{% endhighlight %}

{% endtabs %}

The **ResponseToolBarItemClickedEventArgs** provides access to the **ChatItem** (the message being acted upon) and the **ToolBarItem** (the action button clicked).

## Customization

### Controlling Toolbar Visibility

You can control the visibility of the entire toolbar or individual toolbar items:

{% tabs %}

{% highlight c# %}

// Hide the entire toolbar for a specific message
sfaiAssistView1.SetToolBarVisibility(message, false);

// Show the toolbar for a specific message
sfaiAssistView1.SetToolBarVisibility(message, true);

// Hide a specific toolbar item for a message
sfaiAssistView1.SetToolBarItemVisibility(
message,
ResponseToolBarItemType.Regenerate.ToString(),
false);

// Hide toolbar item by name
sfaiAssistView1.SetToolBarItemVisibility(message, "Copy", false);

{% endhighlight %}

{% endtabs %}

### Getting Toolbar Items

Retrieve toolbar items from a message:

{% tabs %}

{% highlight c# %}

// Get a specific toolbar item
ResponseToolBarItem copyButton = sfaiAssistView1.GetToolBarItem(
message,
ResponseToolBarItemType.Copy.ToString());

if (copyButton != null)
{
// Use toolbar item properties
string itemName = copyButton.Name;
}

{% endhighlight %}

{% endtabs %}

### Configuring Toolbar Items

Set custom toolbar items in the control:

{% tabs %}

{% highlight c# %}

// Configure toolbar items
sfaiAssistView1.ResponseToolBarItems = new ObservableCollection<ResponseToolBarItem>
{
new ResponseToolBarItem
{
ItemType = ResponseToolBarItemType.Copy,
Name = "Copy"
},
new ResponseToolBarItem
{
ItemType = ResponseToolBarItemType.Regenerate,
Name = "Regenerate"
},
new ResponseToolBarItem
{
ItemType = ResponseToolBarItemType.Like,
Name = "Like"
}
};

{% endhighlight %}

{% endtabs %}


### How to hide Regenerate Button for Old Messages.

{% tabs %}

{% highlight c# %}

private void UpdateToolbarForLatestMessage()
{
var messages = (sfaiAssistView1.Messages as IList)
?.Cast<TextMessage>().ToList();

if (messages == null) return;

var botMessages = messages
.Where(m => m.Author.Name == "Bot")
.ToList();

var latestMessage = botMessages.LastOrDefault();

// Hide Regenerate button on all old bot messages
foreach (var oldMessage in botMessages
.Where(m => m != latestMessage))
{
sfaiAssistView1.SetToolBarItemVisibility(
oldMessage,
ResponseToolBarItemType.Regenerate.ToString(),
false);
}
}

{% endhighlight %}

{% endtabs %}
81 changes: 81 additions & 0 deletions WindowsForms/AI-AssistView/Stop-Responding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
---
layout: post
title: Stop Responding in Windows Forms AI AssistView control | Syncfusion
description: Learn about the Stop Responding feature in the AI AssistView control that allows users to cancel an ongoing AI response by clicking the Stop Responding button.
platform: windowsforms
control: SfAIAssistView
documentation: ug
---

# Stop Responding in WinForms AI AssistView

The **SfAIAssistView** control includes a **Stop Responding** feature that allows users to cancel an ongoing AI response by clicking the **Stop Responding** button. This feature ensures that users can interrupt the response if it is no longer needed.

## EnableStopResponding

By default, the **Stop Responding** button is not displayed. To enable it, set the EnableStopResponding property to `true`.

{% tabs %}

{% highlight c# %}

SfAIAssistView sfAIAssistView = = new SfAIAssistView();
sfaiAssistView1.EnableStopResponding = true;

{% endhighlight %}

{% endtabs %}
![WindowsForms AI AssistView control StopResponding](aiassistview_images/windowsforms-aiassistview_stopresponding.png)

The button displays when EnableStopResponding is true.

## Stop Responding Event

The **SfAIAssistView** control provides the **StopRespondingButtonClicked** event. This is triggered when the **Stop Responding** button is clicked. You can handle this action to stop an ongoing AI response by subscribing to the **StopRespondingButtonClicked** event:

{% tabs %}

{% highlight c# %}

sfaiAssistView1.StopRespondingButtonClicked += SfaiAssistView1_StopResponding;

private void SfaiAssistView1_StopResponding(object sender, EventArgs e)
{
// Handle the Stop Responding action
CancelAIRequest();
}

private System.Threading.CancellationTokenSource cts;
public void CancelAIRequest()
{
if (cts != null && !cts.IsCancellationRequested)
cts.Cancel();
}

{% endhighlight %}

{% endtabs %}
![WindowsForms AI AssistView control Cancel StopResponding](aiassistview_images/windowsforms-aiassistview_canceling.png)

## Customization

The button text and hold duration in **SfAIAssistView** can be customized using the **StopRespondingButtonText**, **StopRespondingButtonCancelingText**, and **StopRespondingHoldSeconds** properties. This allows you to set the button text, canceling text, and hold time for the **Stop Responding** button.

{% tabs %}

{% highlight c# %}

// Set button text
sfaiAssistView1.StopRespondingButtonText = "⏹ Stop";

// Set canceling text (shown while canceling)
sfaiAssistView1.StopRespondingButtonCancelingText = "Stopping...";

// Set hold time (seconds button stays disabled after click)
sfaiAssistView1.StopRespondingHoldSeconds = 2;

{% endhighlight %}

{% endtabs %}
![WindowsForms AI AssistView control StopRespondingButtonText](aiassistview_images/windowsforms_aiassistview_stoprespondingtext.png)

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.