TX Text Control .NET for WPF

MiniToolbar Property

Property|Introduced in 25.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

Description

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.

Syntax

public MiniToolbar MiniToolbar { get; set; }

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.

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

Remarks

If the WPF.MiniToolbar represents an object of type WPF.TextMiniToolbar or WPF.ObjectMiniToolbar 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 or WPF.TextControl.ObjectMiniToolbarInitialized event.