TX Text Control .NET for WPF

ObjectMiniToolbarInitialized Event

Event|Introduced in 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 as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

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

public event WPF.MiniToolbarInitializedEventHandler ObjectMiniToolbarInitialized;

Examples

The following example records useful context when initialized occurs.

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

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 event.