ClassBaseChatItemElement
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class BaseChatItemElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider, IVirtualizedElement<BaseChatDataItem>
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementBaseChatItemElement
Derived Classes:
Implements:
Inherited Members
Constructors
BaseChatItemElement()
Declaration
public BaseChatItemElement()
Fields
IsOwnMessageProperty
Declaration
public static RadProperty IsOwnMessageProperty
Field Value
Properties
AvatarPictureElement
Declaration
public virtual ChatMessageAvatarElement AvatarPictureElement { get; }
Property Value
Data
Gets the associated data.
Declaration
public virtual BaseChatDataItem Data { get; protected set; }
Property Value
The data.
Implements
MainMessageElement
Declaration
public LightVisualElement MainMessageElement { get; }
Property Value
NameLabelElement
Declaration
public ChatMessageNameElement NameLabelElement { get; }
Property Value
StatusLabelElement
Declaration
public ChatMessageStatusElement StatusLabelElement { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Attach(BaseChatDataItem, object)
Attaches the specified data.
Declaration
public virtual void Attach(BaseChatDataItem data, object context)
Parameters
data
The data.
context
The context.
Implements
CreateAvatarElement()
Declaration
protected virtual ChatMessageAvatarElement CreateAvatarElement()
Returns
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateMainMessageElement()
Declaration
protected virtual LightVisualElement CreateMainMessageElement()
Returns
CreateNameLabel()
Declaration
protected virtual ChatMessageNameElement CreateNameLabel()
Returns
CreateStatusLabel()
Declaration
protected virtual ChatMessageStatusElement CreateStatusLabel()
Returns
DataPropertyChanged(object, PropertyChangedEventArgs)
Declaration
protected virtual void DataPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
sender
e
Detach()
Detaches this instance.
Declaration
public virtual void Detach()
Implements
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
IsCompatible(BaseChatDataItem, object)
Determines whether element is compatible with the specified data.
Declaration
public virtual bool IsCompatible(BaseChatDataItem data, object context)
Parameters
data
The data.
context
The context.
Returns
true if the specified data is compatible; otherwise, false.
Implements
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
ShouldArrangeChild(RadElement)
Gets a value indicating whether a child will be arranged during the ArrangeOverride(SizeF).
Declaration
protected override bool ShouldArrangeChild(RadElement child)
Parameters
child
The child element to check.
Returns
Whether the child will be arranged in ArrangeOverride.
Overrides
ShouldMeasureChild(RadElement)
Gets a value indicating, whether a child will be measured during the MeasureOverride.
Declaration
protected override bool ShouldMeasureChild(RadElement child)
Parameters
child
The child.
Returns
Whether the child will be measured in MeasureOverride.
Overrides
Synchronize()
Synchronizes this instance.
Declaration
public virtual void Synchronize()
Implements