ClassMessageGroupViewModel
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
MessageGroupViewModel(Author)
Initializes a new instance of the MessageGroupViewModel class.
Declaration
public MessageGroupViewModel(Author currentUser)
Parameters
currentUser
Properties
Alignment
Gets the groups' alignment.
Declaration
public override HorizontalAlignment Alignment { get; }
Property Value
HorizontalAlignment
Overrides
Author
Gets the groups' author.
AvatarAlignment
Gets the avatar alignment in accordance to the current author.
Declaration
public virtual Dock AvatarAlignment { get; }
Property Value
Dock
CreationDate
Gets the time when the message was created (first message).
Messages
Gets the collection of member inline messages.
Declaration
public virtual ObservableItemCollection<InlineViewModel> Messages { get; }
Property Value
Methods
AddMessage(MessageBase)
Adds an inline message to the MessageGroup.
Declaration
protected virtual void AddMessage(MessageBase message)
Parameters
message
GetCornerRadius(InlineViewModel)
Calculate corner radius in accordance to PositionInGroup.
Declaration
protected virtual CornerRadius GetCornerRadius(InlineViewModel message)
Parameters
message
Returns
CornerRadius
OnMessagesCollectionChanged(object, NotifyCollectionChangedEventArgs)
Invoked when the messages collection is modified.
Declaration
protected virtual void OnMessagesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters
sender
e
OnMessagesItemChanged(object, ItemChangedEventArgs<InlineViewModel>)
Invoked when one of the messages is modified.
Declaration
protected virtual void OnMessagesItemChanged(object sender, ItemChangedEventArgs<InlineViewModel> e)
Parameters
sender
e