# WPF.MiniToolbarOpeningEventArgs Class

> The WPF.MiniToolbarOpeningEventArgs class provides data for the WPF.TextControl.MiniToolbarOpening event of a WPF.TextControl. This event occurs to handle displaying context sensitive mini toolbars. The MiniToolbarContext property informs for which context the mini-tooolbar will be opened. Depending on that context the pre-defined mini toolbar WPF.TextMiniToolbar or WPF.ObjectMiniToolbar are provided by the MiniToolbar property.

- **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.ComponentModel.CancelEventArgs`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > WPF.MiniToolbarOpeningEventArgs Class
- **838 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/llms-full.txt

---

### Description

The WPF.MiniToolbarOpeningEventArgs class provides data for the [WPF.TextControl.MiniToolbarOpening](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/minitoolbaropening-event/llms-full.txt) event of a [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt). This event occurs to handle displaying context sensitive [mini toolbars](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbar/llms-full.txt). The [MiniToolbarContext](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt) property informs for which context the mini-tooolbar will be opened. Depending on that context the pre-defined mini toolbar [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) are provided by the [MiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbar-property/llms-full.txt) property.

### Syntax

```csharp
public class MiniToolbarOpeningEventArgs : CancelEventArgs
```

```vbnet
Public Class MiniToolbarOpeningEventArgs
    Inherits CancelEventArgs
```

### Examples

The following example includes the mini toolbar context value from a Mini Toolbar Opening Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Mini Toolbar Context: {miniToolbarOpeningEventArgs.MiniToolbarContext}");
Console.WriteLine("Mini Toolbar Opening Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Mini Toolbar Context: {miniToolbarOpeningEventArgs.MiniToolbarContext}")
Console.WriteLine("Mini Toolbar Opening Event Args is ready for use.")
```

---

## In This Section

- [WPF.MiniToolbarOpeningEventArgs.HorizontalOffset Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/horizontaloffset-property/llms-full.txt): Gets the horizontal distance between the top-left corner of the screen and the location where the mini-toolbar is displayed.
- [WPF.MiniToolbarOpeningEventArgs.MiniToolbar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbar-property/llms-full.txt): 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.
- [WPF.MiniToolbarOpeningEventArgs.MiniToolbarContext Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/minitoolbarcontext-property/llms-full.txt): Gets the context in the document for which the mini-toolbar will be opened. The content, which will be shown, depends on this context. The property value can be a combination (bitwise or) of the ContextMenuLocation values.
- [WPF.MiniToolbarOpeningEventArgs.VerticalOffset Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/wpf-minitoolbaropeningeventargs/verticaloffset-property/llms-full.txt): Gets the vertical distance between the top-left corner of the screen and the location where the mini-toolbar is displayed.

---

## Nearby

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