# TextControl.ObjectMiniToolbarInitialized Event

> Occurs immediately after the built-in WPF.ObjectMiniToolbar was initialized. The event handler receives an argument of type WPF.MiniToolbarInitializedEventArgs containing the ObjectMiniToolbar that was created. The event is raised if the ShowMiniToolbar property is set to MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 25.0
- **Not found:** no package of this release declares a member of this name; the type declares `ObjectMiniToolbarInitalized`
- **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 > TextControl.ObjectMiniToolbarInitialized Event
- **528 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/objectminitoolbarinitialized-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/objectminitoolbarinitialized-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/objectminitoolbarinitialized-event/llms-full.txt

---

### Description

Occurs immediately after the built-in [WPF.ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/objectminitoolbar/llms-full.txt) was initialized. The event handler receives an argument of type [WPF.MiniToolbarInitializedEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/minitoolbarinitializedeventargs/llms-full.txt) containing the [ObjectMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/minitoolbarinitializedeventargs/minitoolbar-property/llms-full.txt) that was created. The event is raised if the [ShowMiniToolbar](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/showminitoolbar-property/llms-full.txt) property is set to `MiniToolbarButton.RightButton` or `MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton`.

### Syntax

No package of this release declares this member; the type declares ObjectMiniToolbarInitalized. The declaration below is the reference's.

```csharp
public event WPF.MiniToolbarInitializedEventHandler ObjectMiniToolbarInitialized;
```

```vbnet
Public Event ObjectMiniToolbarInitialized As WPF.MiniToolbarInitializedEventHandler
```

### Examples

The following example records useful context when initialized occurs.

```csharp
textControl.Initialized += (sender, e) =>
{
    Console.WriteLine($"Initialized at {DateTime.Now:u}");
};
```

```vbnet
AddHandler textControl.Initialized,
    Sub(sender, e)
        Console.WriteLine($"Initialized at {DateTime.Now:u}")
    End Sub
```

### Remarks

It is recommended to handle this event to determine the structure of the WPF.ObjectMiniToolbar. Toggling the visibility of items should be handled by the [WPF.TextControl.MiniToolbarOpening](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/minitoolbaropening-event/llms-full.txt) event.

---

## Nearby

- **Previous:** [TextControl.MisspelledWords Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/misspelledwords-property/llms-full.txt)
- **Next:** [TextControl.OnAdaptFont Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/onadaptfont-method/llms-full.txt)
