# WPF.MiniToolbarOpeningEventArgs.MiniToolbar Property

> Gets or sets the mini toolbar, which will be shown. To completely suppress a mini toolbar, the Cancel Property must be set to true. The property's value is of the type MiniToolbar.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > WPF.MiniToolbarOpeningEventArgs.MiniToolbar Property
- **660 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbar-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbar-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbar-property/llms-full.txt

---

### Description

Gets or sets the [mini toolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms-full.txt), which will be shown. To completely suppress a mini toolbar, the `Cancel` Property must be set to true. The property's value is of the type [MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/minitoolbar/llms-full.txt).

### Syntax

```csharp
public MiniToolbar MiniToolbar { get; set; }
```

```vbnet
Public Property MiniToolbar As MiniToolbar
```

### Examples

The following example uses `MiniToolbarOpeningEventArgs.MiniToolbar` to configure mini toolbar as part of the mini toolbar opening event args workflow. The configured value is checked before the workflow continues.

```csharp
miniToolbarOpeningEventArgs.MiniToolbar = new TXTextControl.WPF.MiniToolbar();
if (miniToolbarOpeningEventArgs.MiniToolbar != null)
{
    Console.WriteLine("Mini Toolbar Opening Event Args: Mini Toolbar is available.");
}
```

```vbnet
miniToolbarOpeningEventArgs.MiniToolbar = New TXTextControl.WPF.MiniToolbar()
If miniToolbarOpeningEventArgs.MiniToolbar IsNot Nothing Then
    Console.WriteLine("Mini Toolbar Opening Event Args: Mini Toolbar is available.")
End If
```

### Remarks

If the WPF.MiniToolbar represents an object of type [WPF.TextMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textminitoolbar/llms-full.txt) or [WPF.ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/objectminitoolbar/llms-full.txt) it is recommended to use this property for toggling the visibility of their added or built-in context sensitive items. Determining the structure of these items should be handled by the [WPF.TextControl.TextMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/textminitoolbarinitialized-event/llms-full.txt) or [WPF.TextControl.ObjectMiniToolbarInitialized](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/objectminitoolbarinitialized-event/llms-full.txt) event.

---

## Nearby

- **Previous:** [WPF.MiniToolbarOpeningEventArgs.HorizontalOffset Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/horizontaloffset-property/llms-full.txt)
- **Next:** [WPF.MiniToolbarOpeningEventArgs.MiniToolbarContext Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt)
