TX Text Control .NET for WPF

MiniToolbarOpeningEventArgs 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. CancelEventArgs
  2. MiniToolbarOpeningEventArgs

Description

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.

Syntax

public class MiniToolbarOpeningEventArgs : 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.

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

Members

Properties

PropertyDescription
HorizontalOffsetGets the horizontal distance between the top-left corner of the screen and the location where the mini-toolbar is displayed.
MiniToolbarGets 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.
MiniToolbarContextGets 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.
VerticalOffsetGets the vertical distance between the top-left corner of the screen and the location where the mini-toolbar is displayed.