Table of Contents

Class DataModelListViewModel

Namespace
Artemis.UI.Shared.DataModelVisualization.Shared
Assembly
Artemis.UI.Shared.dll

Represents a view model that visualizes a list data model property

public class DataModelListViewModel : DataModelVisualizationViewModel, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IDisposable
Inheritance
object
ReactiveObject
DataModelListViewModel
Implements
IReactiveNotifyPropertyChanged<IReactiveObject>
IHandleObservableErrors
IReactiveObject
IEnableLogger
Inherited Members
ReactiveObject.SuppressChangeNotifications()
ReactiveObject.AreChangeNotificationsEnabled()
ReactiveObject.DelayChangeNotifications()
ReactiveObject.Changing
ReactiveObject.Changed
ReactiveObject.ThrownExceptions
ReactiveObject.PropertyChanging
ReactiveObject.PropertyChanged

Properties

CountDisplay

Gets a human readable display count

public string CountDisplay { get; set; }

Property Value

string

DisplayValueType

Gets the type of elements this list contains and that must be displayed as children

public Type? DisplayValueType { get; set; }

Property Value

Type

List

Gets the instance of the list that is being visualized

public IEnumerable? List { get; }

Property Value

IEnumerable

ListChildren

Gets a list of child view models that visualize the elements in the list

public ObservableCollection<DataModelVisualizationViewModel> ListChildren { get; }

Property Value

ObservableCollection<DataModelVisualizationViewModel>

ListCount

Gets amount of elements in the list that is being visualized

public int ListCount { get; }

Property Value

int

Methods

GetSearchResults(string)

Gets the search results for the provided search string

public override IEnumerable<DataModelVisualizationViewModel> GetSearchResults(string search)

Parameters

search string

The search string

Returns

IEnumerable<DataModelVisualizationViewModel>

The search results

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

Update(IDataModelUIService, DataModelUpdateConfiguration?)

Updates the datamodel and if in an parent, any children

public override void Update(IDataModelUIService dataModelUIService, DataModelUpdateConfiguration? configuration)

Parameters

dataModelUIService IDataModelUIService

The data model UI service used during update

configuration DataModelUpdateConfiguration

The configuration to apply while updating