# GotoDialog Constructor

> Creates a GotoDialog object for the specified WPF.TextControl.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 22.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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > GotoDialog Constructor
- **416 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/constructor/llms-full.txt

---

### Description

Creates a GotoDialog object for the specified [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt).

### Syntax

```csharp
public GotoDialog(TextControl textControl);
```

```vbnet
Public Sub New(textControl As TextControl)
```

### Parameters

| Parameter | Description |
|---|---|
| textControl | Specifies the [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) for which the dialog box is opened. |

### Examples

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

```csharp
TXTextControl.WPF.GotoDialog gotoDialog = new(new TXTextControl.WPF.TextControl());
gotoDialog.AllowsTransparency = true;
```

```vbnet
Dim gotoDialog As New TXTextControl.WPF.GotoDialog(New TXTextControl.WPF.TextControl())
gotoDialog.AllowsTransparency = True
```

---

## Nearby

- **Previous:** [GotoDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/llms-full.txt)
- **Next:** [GotoDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/dialogitem-enumeration/llms-full.txt)
