# Sidebar.DialogLocation Property

> Gets or sets the location of the dialog where the Sidebar is placed, if the Sidebar.IsPinned property is set to false. To place the dialog into the center of the top most control, the property value must be set to null. The default value is null.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.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 > Sidebar.DialogLocation Property
- **481 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/dialoglocation-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/dialoglocation-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/dialoglocation-property/llms-full.txt

---

### Description

Gets or sets the location of the dialog where the Sidebar is placed, if the [Sidebar.IsPinned](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/ispinned-property/llms-full.txt) property is set to false. To place the dialog into the center of the top most control, the property value must be set to `null`. The default value is `null`.

### Syntax

```csharp
public Point? DialogLocation { get; set; }
```

```vbnet
Public Property DialogLocation As Point?
```

### Examples

The following example uses `Sidebar.DialogLocation` to configure dialog location as part of the sidebar workflow. The configured value is checked before the workflow continues.

```csharp
sidebar.DialogLocation = new System.Windows.Point(20, 20);
if (sidebar.DialogLocation != null)
{
    Console.WriteLine("Sidebar: Dialog Location is available.");
}
```

```vbnet
sidebar.DialogLocation = New System.Windows.Point(20, 20)
If sidebar.DialogLocation IsNot Nothing Then
    Console.WriteLine("Sidebar: Dialog Location is available.")
End If
```

---

## Nearby

- **Previous:** [Sidebar.ContentLayout Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/contentlayout-property/llms-full.txt)
- **Next:** [Sidebar.DialogSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/dialogsize-property/llms-full.txt)
