Class LaunchViewModel
View model for device management.
Inherited Members
Namespace: Phoenix.Applications.Launch
Assembly: Phoenix.Plugin.AppLaunch.dll
Syntax
public class LaunchViewModel : TabItemViewModel<LaunchView>, IViewInitialize, ILaunchViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceLaunchViewModel(LaunchView, IWindowingControl, IEventAggregator, IPhoenixLogger)
Initializes a new instance of the LaunchViewModel class.
Declaration
public LaunchViewModel(LaunchView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
LaunchView | 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. |
Fields
View SourceName
The tab header name.
Declaration
public const string Name = "Launch"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceAddNewLaunchCommand
Gets the command for the adding a new launch.
Declaration
public DelegateCommand AddNewLaunchCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
CloneLaunchCommand
Gets the command for removing a specific launch.
Declaration
public DelegateCommand<LaunchModel> CloneLaunchCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<LaunchModel> |
Launches
Gets a collection of the launches created.
Declaration
public ObservableCollection<LaunchModel> Launches { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<LaunchModel> |
OpenLaunchExpanderCommand
Gets the command for opening the expander for a specific launch.
Declaration
public DelegateCommand<LaunchModel> OpenLaunchExpanderCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<LaunchModel> |
RemoveLaunchCommand
Gets the command for removing a specific launch.
Declaration
public DelegateCommand<LaunchModel> RemoveLaunchCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand<LaunchModel> |
SelectedExpanderView
Gets or sets the selected expander view.
Declaration
public LaunchExpanderView SelectedExpanderView { get; set; }
Property Value
Type | Description |
---|---|
LaunchExpanderView |
Methods
View SourceInitialize()
Allows derived classes to initialize after imports are satisfied.
Declaration
protected override void Initialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Applications.Launch.LaunchView>.Initialize()
View Source
Uninitialize()
Allows derived classes to uninitialize before the view is closed.
Declaration
protected override void Uninitialize()
Overrides
Phoenix.Views.ViewModelBase<Phoenix.Applications.Launch.LaunchView>.Uninitialize()