Show / Hide Table of Contents

Class DetailsViewModel<T>

A base view model for displaying item details.

Inheritance
object
BindableBase
ViewModelBase
DetailsViewModel
DetailsViewModel<T>
ConsiderationViewModel
RequirementViewModel
RoleBasedScenarioViewModel
RoleViewModel
UrgeViewModel
Implements
INotifyPropertyChanged
IOnSelected
Inherited Members
DetailsViewModel.ParameterEditor
DetailsViewModel.ParameterFactory
DetailsViewModel.CanEdit
DetailsViewModel.OnSelected(object)
ViewModelBase.Services
ViewModelBase.Logger
ViewModelBase.LogVerboseException(Exception, string, string)
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)
Namespace: Phoenix.BotBrain
Assembly: Phoenix.Plugin.BotBrain.Parameters.dll
Syntax
public class DetailsViewModel<T> : DetailsViewModel, INotifyPropertyChanged, IOnSelected
Type Parameters
Name Description
T

The item type name.

Remarks

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

Constructors

View Source

DetailsViewModel(IParameterFactory, IServiceProvider, T)

A base view model for displaying item details.

Declaration
public DetailsViewModel(IParameterFactory parameterFactory, IServiceProvider serviceProvider, T item = default)
Parameters
Type Name Description
IParameterFactory parameterFactory

The parameter factory.

IServiceProvider serviceProvider

The service provider.

T item

The initial item.

Remarks

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

Properties

View Source

Item

Gets or sets the item.

Declaration
protected T Item { get; set; }
Property Value
Type Description
T
View Source

ParameterNames

Gets the parameter names for the item.

Declaration
public override IEnumerable<string> ParameterNames { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
DetailsViewModel.ParameterNames
View Source

TelemetryClient

Gets the telemetry client.

Declaration
protected override ITelemetryClient? TelemetryClient { get; }
Property Value
Type Description
ITelemetryClient
Overrides
ViewModelBase.TelemetryClient

Methods

View Source

CreateParameters()

Creates the parameters for editing.

Declaration
protected virtual IEnumerable<IParameter> CreateParameters()
Returns
Type Description
IEnumerable<IParameter>

An enumeration of parameters.

View Source

OnParameterChanged(string)

Called when a parameter value changes.

Declaration
protected virtual void OnParameterChanged(string parameterName)
Parameters
Type Name Description
string parameterName

The parameter name.

View Source

ResetParameters()

Re-creates the parameter editor.

Declaration
protected virtual void ResetParameters()
View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()

Implements

INotifyPropertyChanged
IOnSelected

Extension Methods

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