# CommentsDialog Class

> The CommentsDialog class implements a dialog box that shows all comments of the document. Each of these elements can be selected to move the current input position to the corresponding commented text and handle the related comment by deleting, replying to or editing it. The dialog can be opened as a modeless dialog box. Each item of the dialog box has a name, available through its Name property, which corresponds with a member of the WPF.CommentsDialog.DialogItem enumeration. The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it. The WPF.CommentsDialog is a modeless dialog box which must be shown with the WPF.CommentsDialog.Show method.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 30.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Inherits:** `System.Windows.Window`
- **Implements:** `System.Windows.Markup.IComponentConnector`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > CommentsDialog Class
- **871 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/llms-full.txt

---

### Description

The CommentsDialog class implements a dialog box that shows all [comments](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/comments-property/llms-full.txt) of the document. Each of these elements can be selected to move the current input position to the corresponding [commented text](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/commentedtext/llms-full.txt) and handle the related [comment](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/commentedtext/comment-property/llms-full.txt) by deleting, replying to or editing it. The dialog can be opened as a modeless dialog box. Each item of the dialog box has a name, available through its Name property, which corresponds with a member of the [WPF.CommentsDialog.DialogItem](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/dialogitem-enumeration/llms-full.txt) enumeration. The `FrameworkElement.FindName` method can be used to get a certain item and manipulate, move or delete it. The WPF.CommentsDialog is a modeless dialog box which must be shown with the `WPF.CommentsDialog.Show` method.

### Syntax

```csharp
public class CommentsDialog : Window, IComponentConnector
```

```vbnet
Public Class CommentsDialog
    Inherits Window
    Implements IComponentConnector
```

### Examples

The following example creates a CommentsDialog object and shows the dialog box:

```csharp
CommentsDialog dlg = new CommentsDialog(textControl1);
dlg.Show();
```

```vbnet
Dim dlg As New CommentsDialog(textControl1)
dlg.Show()
```

The following example creates a Comments Dialog instance and configures its allows transparency setting for a document workflow.

```csharp
TXTextControl.WPF.CommentsDialog commentsDialog = new(new TXTextControl.WPF.TextControl());
commentsDialog.AllowsTransparency = true;
```

```vbnet
Dim commentsDialog As New TXTextControl.WPF.CommentsDialog(New TXTextControl.WPF.TextControl())
commentsDialog.AllowsTransparency = True
```

---

## In This Section

- [CommentsDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/constructor/llms-full.txt): Creates a CommentsDialog object for the specified WPF.TextControl.
- [CommentsDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/dialogitem-enumeration/llms-full.txt): Each DialogItem represents an item in a WPF.CommentsDialog dialog box. The corresponding string of a DialogItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it.

---

## Nearby

- **Previous:** [ColorConverter.ConvertBack Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/colorconverter/convertback-method/llms-full.txt)
- **Next:** [CommentsDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/constructor/llms-full.txt)
