Class SelectableItem<T>
A generic type representing a view-model class for an underlying item that can be selected/deselected as part of multi-selection, etc.
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class SelectableItem<T> : BindableBase, INotifyPropertyChanged, ISelectableItem
Type Parameters
Name | Description |
---|---|
T | The item. |
Constructors
View SourceSelectableItem()
Initializes a new instance of the SelectableItem<T> class.
Declaration
public SelectableItem()
SelectableItem(T, bool)
Initializes a new instance of the SelectableItem<T> class.
Declaration
public SelectableItem(T item, bool isSelected)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to copy. |
bool | isSelected | The selection state to copy. |
Properties
View SourceIsSelected
Gets or sets a value indicating whether the item is selected or not.
Declaration
public bool IsSelected { get; set; }
Property Value
Type | Description |
---|---|
bool |
Item
Gets or sets the underlying item.
Declaration
public T Item { get; set; }
Property Value
Type | Description |
---|---|
T |
SelectableObject
Gets the selectable item.
Declaration
public object SelectableObject { get; }
Property Value
Type | Description |
---|---|
object |
Methods
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |