TX Text Control .NET for WPF

TextMiniToolbar Class

Class|Introduced in 25.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.WPF.dll from the setup.
Inherits
  1. Popup
  2. MiniToolbar
  3. TextMiniToolbar
Implements
IComponentConnector

Description

The WPF.TextMiniToolbar class is a mini toolbar that appears when ShowMiniToolbar property is set to MiniToolbarButton.LeftButton, MiniToolbarButton.RightButton or MiniToolbarButton.LeftButton | MiniToolbarButton.RightButton, the left or right mouse button is released and the current context is selected text (ContextMenuLocation.TextSelection), text at the input position (ContextMenuLocation.TextInputPosition) or an input position inside a table (ContextMenuLocation.Table). The FrameworkElement.FindName method can be used to get a certain item and manipulate, move or delete it during the WPF.TextControl.TextMiniToolbarInitialized event. An TextMiniToolbar is inherited from the WPF.MiniToolbar class. The following describes only the properties, methods and events defined through the TextMiniToolbar class.

Syntax

public class TextMiniToolbar : MiniToolbar

Examples

The following example includes the container value from a Text Mini Toolbar object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Container: {textMiniToolbar.Container}");
Console.WriteLine("Text Mini Toolbar is ready for use.");

Members

Enumerations

EnumerationDescription
RibbonItemEach RibbonItem represents an item in a WPF.TextMiniToolbar. The corresponding string of a RibbonItem is the same as the item's Name property. The string can be used with the FrameworkElement.FindName method to get the item and manipulate, move or delete it.