Class OutputViewModel
View model for device management.
Inheritance
System.Object
OutputViewModel
Namespace: Phoenix.Logging
Assembly: Phoenix.dll
Syntax
public class OutputViewModel : ViewModelBase<OutputView>, ILogViewProvider
Constructors
View SourceOutputViewModel(OutputView, IWindowingControl, IEventAggregator, IPhoenixLogger)
Initializes a new instance of the OutputViewModel class.
Declaration
public OutputViewModel(OutputView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
OutputView | view | The view this view model is driving. |
IWindowingControl | windowing | |
IEventAggregator | eventAggregator | The event aggregator for the application. |
IPhoenixLogger | logger | The logger for the application. |
Properties
View SourceCategories
Gets the list of categories that have been registered.
Declaration
public ObservableCollection<LogCategoryInfo> Categories { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<LogCategoryInfo> |
ClearCategoryCommand
Gets the clear category command.
Declaration
public DelegateCommand<LogCategoryInfo> ClearCategoryCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<LogCategoryInfo> |
CurrentCategory
Gets or sets the currently selected category.
Declaration
public LogCategoryInfo CurrentCategory { get; set; }
Property Value
Type | Description |
---|---|
LogCategoryInfo |
IncludeVerbose
Gets or sets a value indicating whether we show verbose output or not.
Declaration
public bool IncludeVerbose { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SaveCategoryCommand
Gets the save log command.
Declaration
public DelegateCommand<LogCategoryInfo> SaveCategoryCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<LogCategoryInfo> |
Implements
IViewProvider