Show / Hide Table of Contents

Class ListViewModel<T>

A view model for managing items in a ListView.

Inheritance
object
BindableBase
TreeViewModel<T>
ListViewModel<T>
BotActionListViewModel
DevicePoolViewModel
Implements
INotifyPropertyChanged
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
INotifyCollectionChanged
IListViewModel
ICanMoveItemsWithin
ICanMoveItemsTo
Inherited Members
TreeViewModel<T>.CollectionChanged
TreeViewModel<T>.Services
TreeViewModel<T>.Items
TreeViewModel<T>.SelectedItem
TreeViewModel<T>.IsEditable
TreeViewModel<T>.IsClearable
TreeViewModel<T>.CanAdd
TreeViewModel<T>.CanClear
TreeViewModel<T>.AddItemCommand
TreeViewModel<T>.RemoveSelectedItemCommand
TreeViewModel<T>.RemoveItemsCommand
TreeViewModel<T>.ClearAllItemsCommand
TreeViewModel<T>.AddWithPopup
TreeViewModel<T>.CreateItemFunc
TreeViewModel<T>.RemoveSubItemFunc
TreeViewModel<T>.AvailableItems
TreeViewModel<T>.AvailableItemsDisplayMemberPath
TreeViewModel<T>.IsSorted
TreeViewModel<T>.Count
TreeViewModel<T>.GetEnumerator()
TreeViewModel<T>.AddItem(object)
TreeViewModel<T>.AddItem(T)
TreeViewModel<T>.InsertItem(int, T)
TreeViewModel<T>.RemoveItems(IEnumerable<T>)
TreeViewModel<T>.RemoveItem(T)
TreeViewModel<T>.ClearAllItems()
TreeViewModel<T>.CreateItem(object)
TreeViewModel<T>.SynchronizeTo<T2>(IEnumerable<T2>, Func<T, T2>, Action<T2>, Action<T2>)
TreeViewModel<T>.OnCollectionChanged(NotifyCollectionChangedEventArgs)
BindableBase.SetProperty<T>(ref T, T, string)
BindableBase.SetProperty<T>(ref T, T, Action, string)
BindableBase.RaisePropertyChanged(string)
BindableBase.OnPropertyChanged(PropertyChangedEventArgs)
BindableBase.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.BotBrain.Controls
Assembly: Phoenix.Plugin.BotBrain.Lists.dll
Syntax
public class ListViewModel<T> : TreeViewModel<T>, INotifyPropertyChanged, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, IListViewModel, ICanMoveItemsWithin, ICanMoveItemsTo where T : class
Type Parameters
Name Description
T

The item type.

Remarks

Initializes a new instance of the ListViewModel<T> class.

Constructors

View Source

ListViewModel(IServiceProvider?)

A view model for managing items in a ListView.

Declaration
public ListViewModel(IServiceProvider? services = null)
Parameters
Type Name Description
IServiceProvider services

The service provider for creating items.

Remarks

Initializes a new instance of the ListViewModel<T> class.

Properties

View Source

SupportsCopy

Gets or sets a value indicating whether or not items can be copied.

Declaration
public bool SupportsCopy { get; set; }
Property Value
Type Description
bool

Methods

View Source

CanAppendItems(object)

Determines if the given items can be moved or copied into this object.

Declaration
public bool CanAppendItems(object dragData)
Parameters
Type Name Description
object dragData

The items.

Returns
Type Description
bool

A boolean.

View Source

CopyItemsTo(object)

Copies the given items into this object.

Declaration
public void CopyItemsTo(object dragData)
Parameters
Type Name Description
object dragData

The items.

View Source

CopyItemsTo(object, int)

Copies the given items into this object.

Declaration
public void CopyItemsTo(object dragData, int dropIndex)
Parameters
Type Name Description
object dragData

The items.

int dropIndex

The index where the items were dropped.

View Source

MoveItemsTo(object)

Moves the given items into this object.

Declaration
public void MoveItemsTo(object dragData)
Parameters
Type Name Description
object dragData

The items.

View Source

MoveItemsTo(object, int)

Moves the given items into this object.

Declaration
public void MoveItemsTo(object dragData, int dropIndex)
Parameters
Type Name Description
object dragData

The items.

int dropIndex

The index where the items were dropped.

Implements

INotifyPropertyChanged
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
INotifyCollectionChanged
IListViewModel
ICanMoveItemsWithin
ICanMoveItemsTo

Extension Methods

IEnumerableExtensions.WithoutLast<T>(IEnumerable<T>)
INotifyCollectionChangedExtensions.OnItemAdded(INotifyCollectionChanged, Action<object?>)
INotifyCollectionChangedExtensions.OnItemAdded<T2>(INotifyCollectionChanged, Action<T2>)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action)
INotifyPropertyChangedExtensions.OnPropertyChanged(INotifyPropertyChanged, string, Action<object?, string>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<bool>)
INotifyPropertyChangedExtensions.OnPropertyChangedUntil(INotifyPropertyChanged, string, Func<object?, string, bool>)
  • View Source
In this article
Back to top Generated by DocFX