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
-
PropertyChangedBaseMessagingViewModel
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.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
IWindowManagerThe window manager.
messageViewModelFactory
IMessageViewModelFactoryFactory 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
MessageServiceThe MessageService model.
Properties
AcknowledgeCommand
Gets or sets the command for acknowledgment messages.
public RelayCommand AcknowledgeCommand { get; set; }
Property Value
IsVisible
Gets or sets a value indicating whether the messages are visible.
public bool IsVisible { get; set; }
Property Value
Messages
Gets or sets the current messages.
public IEnumerable<IMessage> Messages { get; set; }
Property Value
SelectedMessage
Gets or sets the selected message.
public IMessage SelectedMessage { get; set; }
Property Value
ShowMessageCommand
Gets a command for showing the message in a pop-up.
public ICommand ShowMessageCommand { get; }