MiniToolbarOpeningEventArgs Class
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
- Inherits
- Cancel
Event Args - Mini
Toolbar Opening Event Args
- Cancel
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 : CancelEventArgsPublic Class MiniToolbarOpeningEventArgs
Inherits CancelEventArgsExamples
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.");Console.WriteLine($"Mini Toolbar Context: {miniToolbarOpeningEventArgs.MiniToolbarContext}")
Console.WriteLine("Mini Toolbar Opening Event Args is ready for use.")Members
Properties
| Property | Description |
|---|---|
| HorizontalOffset | Gets the horizontal distance between the top-left corner of the screen and the location where the mini-toolbar is displayed. |
| MiniToolbar | 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. |
| MiniToolbarContext | Gets 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. |
| VerticalOffset | Gets the vertical distance between the top-left corner of the screen and the location where the mini-toolbar is displayed. |