New to Telerik UI for WPFStart a free 30-day trial

Represents the view model that contains the properties needed for MessageGroup.

Definition

Constructors

Initializes a new instance of the MessageGroupViewModel class.

C#
public MessageGroupViewModel(Author currentUser)
Parameters:currentUserAuthor

Properties

Alignment

HorizontalAlignment

Gets the groups' alignment.

C#
public override HorizontalAlignment Alignment { get; }

Overrides: MessageListItemViewModelBase.Alignment

Gets the groups' author.

C#
public Author Author { get; }

Gets the avatar alignment in accordance to the current author.

C#
public virtual Dock AvatarAlignment { get; }

Gets the time when the message was created (first message).

C#
public virtual DateTime CreationDate { get; }

Gets the collection of member inline messages.

C#
public virtual ObservableItemCollection<InlineViewModel> Messages { get; }

Methods

Adds an inline message to the MessageGroup.

C#
protected virtual void AddMessage(MessageBase message)
Parameters:messageMessageBase

Calculate corner radius in accordance to PositionInGroup.

C#
protected virtual CornerRadius GetCornerRadius(InlineViewModel message)
Parameters:messageInlineViewModelReturns:

CornerRadius

Invoked when the messages collection is modified.

C#
protected virtual void OnMessagesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
Parameters:senderobjecteNotifyCollectionChangedEventArgs

Invoked when one of the messages is modified.

C#
protected virtual void OnMessagesItemChanged(object sender, ItemChangedEventArgs<InlineViewModel> e)
Parameters:senderobjecteItemChangedEventArgs<InlineViewModel>