New to Telerik UI for WinForms? Start a free 30-day trial

Provides data for the event that occurs when a visual chat item is being created.

Use this class to access both the underlying chat data and its visual representation during item creation events. This enables customization or inspection of chat items as they are instantiated in the UI.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class VisualItemCreatingEventArgs : EventArgs

Inheritance: objectEventArgsVisualItemCreatingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the VisualItemCreatingEventArgs class using the specified chat item element.

C#
public VisualItemCreatingEventArgs(BaseChatItemElement element)
Parameters:elementBaseChatItemElement

The BaseChatItemElement that provides the data and visual representation for the event arguments. Cannot be null.

Properties

Gets the underlying chat data item associated with this instance.

C#
public BaseChatDataItem DataItem { get; }

Gets or sets the underlying chat visual item associated with this instance.

C#
public BaseChatItemElement VisualItem { get; set; }