Class
MessageGroupViewModel

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

Definition

Constructors

MessageGroupViewModel(Author)

Initializes a new instance of the MessageGroupViewModel class.

Declaration

cs-api-definition
public MessageGroupViewModel(Author currentUser)

Parameters

currentUser

Author

Properties

Alignment

Gets the groups' alignment.

Declaration

cs-api-definition
public override HorizontalAlignment Alignment { get; }

Property Value

HorizontalAlignment

Overrides MessageListItemViewModelBase.Alignment

Author

Gets the groups' author.

Declaration

cs-api-definition
public Author Author { get; }

Property Value

Author

AvatarAlignment

Gets the avatar alignment in accordance to the current author.

Declaration

cs-api-definition
public virtual Dock AvatarAlignment { get; }

Property Value

Dock

CreationDate

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

Declaration

cs-api-definition
public virtual DateTime CreationDate { get; }

Property Value

DateTime

Messages

Gets the collection of member inline messages.

Declaration

cs-api-definition
public virtual ObservableItemCollection<InlineViewModel> Messages { get; }

Property Value

ObservableItemCollection<InlineViewModel>

Methods

AddMessage(MessageBase)

Adds an inline message to the MessageGroup.

Declaration

cs-api-definition
protected virtual void AddMessage(MessageBase message)

Parameters

message

MessageBase

GetCornerRadius(InlineViewModel)

Calculate corner radius in accordance to PositionInGroup.

Declaration

cs-api-definition
protected virtual CornerRadius GetCornerRadius(InlineViewModel message)

Parameters

message

InlineViewModel

Returns

CornerRadius

OnMessagesCollectionChanged(object, NotifyCollectionChangedEventArgs)

Invoked when the messages collection is modified.

Declaration

cs-api-definition
protected virtual void OnMessagesCollectionChanged(object sender, NotifyCollectionChangedEventArgs e)

Parameters

sender

object

e

NotifyCollectionChangedEventArgs

OnMessagesItemChanged(object, ItemChangedEventArgs<InlineViewModel>)

Invoked when one of the messages is modified.

Declaration

cs-api-definition
protected virtual void OnMessagesItemChanged(object sender, ItemChangedEventArgs<InlineViewModel> e)

Parameters

sender

object

e

ItemChangedEventArgs<InlineViewModel>