# WPF.MiniToolbar Class

> The WPF.MiniToolbar class is the base class of the built-in mini-toolbars of a WPF.TextControl. A mini-toolbar is a contextual toolbar showing elements to format the document depending on the current context. It is inherited from the System.Windows.Controls.Primitives.Popup class. The following describes only the properties, methods and events defined through the WPF.MiniToolbar class. For a list of properties, methods and events inherited from the System.Windows.Controls.Primitives.Popup class see the .NET Framework reference.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 25.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.Controls.Primitives.Popup`
- **Implements:** `System.Windows.Markup.IComponentConnector`
- **Derived:** `TXTextControl.WPF.ObjectMiniToolbar`, `TXTextControl.WPF.TextMiniToolbar`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > WPF.MiniToolbar Class
- **619 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbar/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbar/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbar/llms-full.txt

---

### Description

The WPF.MiniToolbar class is the base class of the built-in mini-toolbars of a [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt). A mini-toolbar is a contextual toolbar showing elements to format the document depending on the current context. It is inherited from the `System.Windows.Controls.Primitives.Popup` class. The following describes only the properties, methods and events defined through the WPF.MiniToolbar class. For a list of properties, methods and events inherited from the `System.Windows.Controls.Primitives.Popup` class see the .NET Framework reference.

### Syntax

```csharp
public class MiniToolbar : Popup, IComponentConnector
```

```vbnet
Public Class MiniToolbar
    Inherits Popup
    Implements IComponentConnector
```

### Examples

The following example creates a Mini Toolbar instance and configures its horizontal close distance setting for a document workflow.

```csharp
TXTextControl.WPF.MiniToolbar miniToolbar = new();
miniToolbar.HorizontalCloseDistance = 1.0;
```

```vbnet
Dim miniToolbar As New TXTextControl.WPF.MiniToolbar()
miniToolbar.HorizontalCloseDistance = 1.0
```

---

## Nearby

- **Previous:** [MeasureConverter.Unit Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/measureconverter/unit-property/llms-full.txt)
- **Next:** [MiniToolbarInitializedEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/minitoolbarinitializedeventargs/llms-full.txt)
