Class ControllerSelectorViewModel
View model for controller selection
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Input
Assembly: Phoenix.Plugin.Input.dll
Syntax
public class ControllerSelectorViewModel : INotifyPropertyChanged, IDisposable
Constructors
View SourceControllerSelectorViewModel(InputViewModel, IPhoenixLogger)
Initializes a new instance of the ControllerSelectorViewModel class
Declaration
public ControllerSelectorViewModel(InputViewModel parent, IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
InputViewModel | parent | Parent view model |
IPhoenixLogger | logger | Logger to use |
Properties
View SourceConnectController
Gets or sets command to connect a new virtual controller
Declaration
public DelegateCommand ConnectController { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Controllers
Gets the collection of connected virtual controllers
Declaration
public ObservableCollection<ControllerViewModel> Controllers { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ControllerViewModel> |
Deselect
Gets or sets command to deselect all controllers
Declaration
public DelegateCommand Deselect { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
DisconnectAllVirtualControllers
Gets or sets command to disconnect all virtual controllers
Declaration
public DelegateCommand DisconnectAllVirtualControllers { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
DisconnectController
Gets or sets command to disconnect a virtual controller
Declaration
public DelegateCommand DisconnectController { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
InvertSelection
Gets or sets command to invert controller selection
Declaration
public DelegateCommand InvertSelection { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
IsCollapsed
Gets or sets a value indicating whether the panel is collapsed
Declaration
public bool IsCollapsed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsExpanded
Gets a value indicating whether the panel is expanded
Declaration
public bool IsExpanded { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Parent
Gets the view model parent
Declaration
public InputViewModel Parent { get; }
Property Value
Type | Description |
---|---|
InputViewModel |
SelectAll
Gets or sets command to select all controllers
Declaration
public DelegateCommand SelectAll { get; set; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ShowHorizontalHeader
Gets a value indicating whether the panel is collapsed horizontally
Declaration
public bool ShowHorizontalHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowVerticalHeader
Gets a value indicating whether the panel is collapsed vertically
Declaration
public bool ShowVerticalHeader { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ViewDispatcher
Gets or sets the view dispatcher
Declaration
public Dispatcher ViewDispatcher { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Threading.Dispatcher |
Methods
View SourceDispose()
Performs finalization
Declaration
public void Dispose()
Dispose(Boolean)
Performs finalization
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Whether disposing managed resources |
Finalize()
Finalizes an instance of the ControllerSelectorViewModel class.
Declaration
protected void Finalize()
Events
View SourcePropertyChanged
Property changed event required for INotifyPropertyChanged support
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type | Description |
---|---|
System.ComponentModel.PropertyChangedEventHandler |