Represents a row element for displaying a single attachment in the chat message.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class ChatAttachmentRowElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementChatAttachmentRowElement...
Implements:
Inherited Members
Constructors
Initializes a new instance of the ChatAttachmentRowElement class.
public ChatAttachmentRowElement(PromptInputAttachedFile file)
The attached file to display.
Properties
Gets the associated attached file data item.
public PromptInputAttachedFile AttachedFile { get; }
Gets the context menu.
public RadContextMenu ContextMenu { get; }
Gets the file icon element.
public LightVisualElement IconElement { get; }
Gets the menu button element.
public LightVisualButtonElement MenuButton { get; }
Gets the file name element.
public LightVisualElement NameElement { get; }
Gets the file size element.
public LightVisualElement SizeElement { get; }
Methods
Aligns non-stretching children vertically centered within the horizontal row.
protected override RectangleF AlignRect(RadElement element, RectangleF arrangeRect)
Overrides:
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Creates the context menu with Download and Share options. Override to customize.
Creates the file icon element. Override to customize.
Creates the menu button element. Override to customize.
Creates the file name element. Override to customize.
Creates the file size element. Override to customize.
Creates the text panel element. Override to customize.
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
protected override void InitializeFields()
Overrides:
Raises the AttachmentDownloadRequested event.
protected virtual void OnAttachmentDownloadRequested(AttachmentActionEventArgs e)
Raises the AttachmentShareRequested event.
protected virtual void OnAttachmentShareRequested(AttachmentActionEventArgs e)
Events
Occurs when Download is clicked.
public event EventHandler<AttachmentActionEventArgs> AttachmentDownloadRequested
Occurs when Share is clicked.
public event EventHandler<AttachmentActionEventArgs> AttachmentShareRequested