TX Text Control .NET for WPF

TextFrameDeactivated Event

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

Description

Occurs when a text frame loses the current text input position and another part of the document such as a header, a footer or the main text gets it. The event handler receives an argument of type TextFrameEventArgs containing data related to this event.

Syntax

public event TextFrameEventHandler TextFrameDeactivated;

Examples

The following example records useful context when text frame deactivated occurs.

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