Class DataModelListItemViewModel
- Namespace
- Artemis.UI.Shared.DataModelVisualization.Shared
- Assembly
- Artemis.UI.Shared.dll
Represents a view model that visualizes a single data model property contained in a DataModelListViewModel
public class DataModelListItemViewModel : DataModelVisualizationViewModel, IReactiveNotifyPropertyChanged<IReactiveObject>, IHandleObservableErrors, IReactiveObject, IEnableLogger, IDisposable
- Inheritance
-
objectReactiveObjectDataModelListItemViewModel
- Implements
-
IReactiveNotifyPropertyChanged<IReactiveObject>IHandleObservableErrorsIReactiveObjectIEnableLogger
- Inherited Members
-
ReactiveObject.SuppressChangeNotifications()ReactiveObject.AreChangeNotificationsEnabled()ReactiveObject.DelayChangeNotifications()ReactiveObject.ChangingReactiveObject.ChangedReactiveObject.ThrownExceptionsReactiveObject.PropertyChangingReactiveObject.PropertyChanged
Properties
DisplayValue
Gets the value of the property that is being visualized
public object? DisplayValue { get; }
Property Value
- object
DisplayViewModel
Gets the view model used to display the display value
public DataModelDisplayViewModel? DisplayViewModel { get; }
Property Value
Index
Gets the index of the element within the list
public int Index { get; }
Property Value
ListType
Gets the type of elements contained in the list
public Type? ListType { get; }
Property Value
Methods
GetCurrentValue()
Gets the current value of the property being visualized
public override object? GetCurrentValue()
Returns
- object
The current value of the property being visualized
GetSearchResults(string)
Gets the search results for the provided search string
public override IEnumerable<DataModelVisualizationViewModel> GetSearchResults(string search)
Parameters
searchstringThe 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
dataModelUIServiceIDataModelUIServiceThe data model UI service used during update
configurationDataModelUpdateConfigurationThe configuration to apply while updating