TX Text Control .NET Server

FormFieldDateChanged Event

Event|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

Occurs when the date of a DateFormField has been changed. The event handler receives an argument of type DateFormFieldEventArgs containing data related to this event. The event does not occur, when the DateFormField.Date property has been used to change the date.

Syntax

public event DateFormFieldEventHandler FormFieldDateChanged;

Examples

The following example records useful context when form field date changed occurs.

textViewGenerator.FormFieldDateChanged += (sender, e) =>
{
    Console.WriteLine($"Form Field Date Changed at {DateTime.Now:u}");
};