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