ClassChatAttachmentRowElement
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
ChatAttachmentRowElement(PromptInputAttachedFile)
Initializes a new instance of the ChatAttachmentRowElement class.
Declaration
public ChatAttachmentRowElement(PromptInputAttachedFile file)
Parameters
file
The attached file to display.
Properties
AttachedFile
Gets the associated attached file data item.
Declaration
public PromptInputAttachedFile AttachedFile { get; }
Property Value
ContextMenu
Gets the context menu.
Declaration
public RadContextMenu ContextMenu { get; }
Property Value
IconElement
Gets the file icon element.
Declaration
public LightVisualElement IconElement { get; }
Property Value
MenuButton
Gets the menu button element.
Declaration
public LightVisualButtonElement MenuButton { get; }
Property Value
NameElement
Gets the file name element.
Declaration
public LightVisualElement NameElement { get; }
Property Value
SizeElement
Gets the file size element.
Declaration
public LightVisualElement SizeElement { get; }
Property Value
Methods
AlignRect(RadElement, RectangleF)
Aligns non-stretching children vertically centered within the horizontal row.
Declaration
protected override RectangleF AlignRect(RadElement element, RectangleF arrangeRect)
Parameters
element
arrangeRect
Returns
Overrides
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateContextMenu()
Creates the context menu with Download and Share options. Override to customize.
Declaration
protected virtual RadContextMenu CreateContextMenu()
Returns
CreateIconElement()
Creates the file icon element. Override to customize.
Declaration
protected virtual LightVisualElement CreateIconElement()
Returns
CreateMenuButton()
Creates the menu button element. Override to customize.
Declaration
protected virtual LightVisualButtonElement CreateMenuButton()
Returns
CreateNameElement()
Creates the file name element. Override to customize.
Declaration
protected virtual LightVisualElement CreateNameElement()
Returns
CreateSizeElement()
Creates the file size element. Override to customize.
Declaration
protected virtual LightVisualElement CreateSizeElement()
Returns
CreateTextPanel()
Creates the text panel element. Override to customize.
Declaration
protected virtual StackLayoutElement CreateTextPanel()
Returns
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
OnAttachmentDownloadRequested(AttachmentActionEventArgs)
Raises the AttachmentDownloadRequested event.
Declaration
protected virtual void OnAttachmentDownloadRequested(AttachmentActionEventArgs e)
Parameters
e
OnAttachmentShareRequested(AttachmentActionEventArgs)
Raises the AttachmentShareRequested event.
Declaration
protected virtual void OnAttachmentShareRequested(AttachmentActionEventArgs e)
Parameters
e
OnDownloadClick(object, EventArgs)
Handles the Download menu item click.
OnMenuButtonClick(object, EventArgs)
Handles the menu button click to show the context menu.
OnShareClick(object, EventArgs)
Handles the Share menu item click.
Events
AttachmentDownloadRequested
Occurs when Download is clicked.
Declaration
public event EventHandler<AttachmentActionEventArgs> AttachmentDownloadRequested
Event Value
AttachmentShareRequested
Occurs when Share is clicked.
Declaration
public event EventHandler<AttachmentActionEventArgs> AttachmentShareRequested
Event Value