Represents the view model that contains the properties needed for MessageGroup.
Definition
Namespace:Telerik.Windows.Controls.ConversationalUI
Assembly:Telerik.Windows.Controls.ConversationalUI.dll
Syntax:
public class MessageGroupViewModel : MessageListItemViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseMessageListItemViewModelBaseMessageGroupViewModel
Implements:
Inherited Members
Constructors
Initializes a new instance of the MessageGroupViewModel class.
Properties
Alignment
HorizontalAlignment
Gets the groups' alignment.
public override HorizontalAlignment Alignment { get; }
Overrides:
AvatarAlignment
Dock
Gets the avatar alignment in accordance to the current author.
public virtual Dock AvatarAlignment { get; }
Gets the time when the message was created (first message).
public virtual DateTime CreationDate { get; }
Gets the collection of member inline messages.
public virtual ObservableItemCollection<InlineViewModel> Messages { get; }
Methods
Adds an inline message to the MessageGroup.
GetCornerRadius(InlineViewModel)
CornerRadius
Calculate corner radius in accordance to PositionInGroup.
protected virtual CornerRadius GetCornerRadius(InlineViewModel message)
CornerRadius
Invoked when the messages collection is modified.
protected virtual void OnMessagesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Invoked when one of the messages is modified.
protected virtual void OnMessagesItemChanged(object sender, ItemChangedEventArgs<InlineViewModel> e)