DialogViewGenerator Class
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Server. Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.Server. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
- Inherits
- Component
- Dialog
View Generator
Description
An instance of the DialogViewGenerator class can be used to visualize a built-in dialog box through an image. It manages a ServerVisualization.UserInput and a ServerVisualization.View object. These objects can be used to inform the generator about user input and to get a generated view depending on the input.
Syntax
public class DialogViewGenerator : ComponentPublic Class DialogViewGenerator
Inherits ComponentExamples
The following example includes the activation state value from a Dialog View Generator object in application diagnostics. The created object is then available to the surrounding document workflow.
Console.WriteLine($"Activation State: {dialogViewGenerator.ActivationState}");
Console.WriteLine("Dialog View Generator is ready for use.");Console.WriteLine($"Activation State: {dialogViewGenerator.ActivationState}")
Console.WriteLine("Dialog View Generator is ready for use.")Members
Properties
| Property | Description |
|---|---|
| ActivationState | Gets or sets a value indicating the dialog box's activation state. It can be activated, deactivated or disabled. |
| Caption | Gets the dialog box's caption. |
| UserInput | Gets the dialog box's UserInput object, which can be used to inform the dialog box about user input. The generator uses this information to generate a new view. |
| View | Gets the dialog box's View object, which informs about view changes and provides an image of the dialog box's current state. |
Events
| Event | Description |
|---|---|
| CaretStateChanged | Occurs when the state of the caret (size, position, visibility) has been changed. The event handler receives an argument of type ServerVisualization.CaretStateEventArgs containing data related to this event. |
| Closed | Occurs after the dialog box has been closed through clicking the Ok or Cancel button. The event handler receives an argument of type EventArgs containing data related to this event. |
| ShowDialogBox | Occurs when the dialog box should show a further dialog box. The event handler receives an argument of type ServerVisualization.ShowDialogBoxEventArgs containing data related to this event. |
| ShowErrorMessage | Occurs when the dialog box should show an error message. The event handler receives an argument of type ServerVisualization.ShowErrorMessageEventArgs containing data related to this event. |