# GotoDialog Class

> The GotoDialog class implements a dialog box which can be used to move the current input position to a certain page, section, line, table or bookmark. The new input position is shown with a marker. 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.GotoDialog.DialogItem enumeration. The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it. The WPF.GotoDialog is a modeless dialog box which must be shown with the WPF.GotoDialog.Show method.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.Windows.Window`
- **Implements:** `System.Windows.Markup.IComponentConnector`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > GotoDialog Class
- **790 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/llms-full.txt

---

### Description

The GotoDialog class implements a dialog box which can be used to move the current input position to a certain page, section, line, table or bookmark. The new input position is shown with a marker. 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.GotoDialog.DialogItem](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/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.GotoDialog is a modeless dialog box which must be shown with the `WPF.GotoDialog.Show` method.

### Syntax

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

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

### Examples

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

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

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

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
```

---

## In This Section

- [GotoDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/constructor/llms-full.txt): Creates a GotoDialog object for the specified WPF.TextControl.
- [GotoDialog.DialogItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/dialogitem-enumeration/llms-full.txt): Each DialogItem represents an item in a WPF.GotoDialog 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:** [DialogResult Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/dialogresult/enumeration/llms-full.txt)
- **Next:** [GotoDialog Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/gotodialog/constructor/llms-full.txt)
