Table of Contents

Class MessagingViewModel

Namespace
Loehnert.Lisrt.Messaging.ViewModels
Assembly
Loehnert.Lisrt.dll

View model for a message control with quit button.

[Export]
public class MessagingViewModel : PropertyChangedBase, INotifyPropertyChangedEx, INotifyPropertyChanged
Inheritance
PropertyChangedBase
MessagingViewModel
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

MessagingViewModel(IWindowManager, IMessageViewModelFactory)

Initializes a new instance of the MessagingViewModel class. Calls the MessagingViewModel(MessageService) constructor with the Instance.

[ImportingConstructor]
public MessagingViewModel(IWindowManager windowManager, IMessageViewModelFactory messageViewModelFactory)

Parameters

windowManager IWindowManager

The window manager.

messageViewModelFactory IMessageViewModelFactory

Factory for message view models.

MessagingViewModel(MessageService)

Initializes a new instance of the MessagingViewModel class. Prefer to use the MessagingViewModel(IWindowManager, IMessageViewModelFactory) constructor.

public MessagingViewModel(MessageService messageService)

Parameters

messageService MessageService

The MessageService model.

Properties

AcknowledgeCommand

Gets or sets the command for acknowledgment messages.

public RelayCommand AcknowledgeCommand { get; set; }

Property Value

RelayCommand

IsVisible

Gets or sets a value indicating whether the messages are visible.

public bool IsVisible { get; set; }

Property Value

bool

Messages

Gets or sets the current messages.

public IEnumerable<IMessage> Messages { get; set; }

Property Value

IEnumerable<IMessage>

SelectedMessage

Gets or sets the selected message.

public IMessage SelectedMessage { get; set; }

Property Value

IMessage

ShowMessageCommand

Gets a command for showing the message in a pop-up.

public ICommand ShowMessageCommand { get; }

Property Value

ICommand