Class AttachmentParameterViewModel
View model representing attachment capture parameter.
Implements
Inherited Members
Namespace: Phoenix.Aruba
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class AttachmentParameterViewModel : BindableBase, INotifyPropertyChanged
Constructors
View SourceAttachmentParameterViewModel(TemplateViewModel, AttachmentParameterDefinition, bool, ViewModelSharedInfo, ICustomAttachments)
Initializes a new instance of the AttachmentParameterViewModel class.
Declaration
public AttachmentParameterViewModel(TemplateViewModel template, AttachmentParameterDefinition definition, bool inDesignMode, ViewModelSharedInfo sharedInfo, ICustomAttachments customAttachments = null)
Parameters
Type | Name | Description |
---|---|---|
TemplateViewModel | template | The template view model. |
AttachmentParameterDefinition | definition | The attachment parameter definition. |
bool | inDesignMode | Indicates if this instance is in design mode. |
ViewModelSharedInfo | sharedInfo | SharedInfo ViewModel. |
ICustomAttachments | customAttachments | The group of custom attachments. |
Properties
View SourceDefinition
Gets parameter's serializable definition.
Declaration
public AttachmentParameterDefinition Definition { get; }
Property Value
Type | Description |
---|---|
AttachmentParameterDefinition |
EmbedDisplayText
Gets the text to display in the UI.
Declaration
public string EmbedDisplayText { get; }
Property Value
Type | Description |
---|---|
string |
IsInvalid
Gets a value indicating whether if the current parameter is valid.
Declaration
public bool IsInvalid { get; }
Property Value
Type | Description |
---|---|
bool |
IsMultiSelect
Declaration
public bool IsMultiSelect { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets or sets parameter's Key/Display Name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
SelectedInvalidValues
Gets a list of selected items which are invalid.
Declaration
public IEnumerable<AttachmentParameterItemViewModel> SelectedInvalidValues { get; }
Property Value
Type | Description |
---|---|
IEnumerable<AttachmentParameterItemViewModel> |
SharedInfo
Gets or sets the SharedInfo provided for this AttachmentParameterViewModel.
Declaration
public ViewModelSharedInfo SharedInfo { get; set; }
Property Value
Type | Description |
---|---|
ViewModelSharedInfo |
UseItemSelector
Gets a value indicating whether if the parameter uses the Item Selector.
Declaration
public bool UseItemSelector { get; }
Property Value
Type | Description |
---|---|
bool |
Value
Gets or sets parameter's value.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
object |
ValueList
Gets or sets parameter's list value.
Declaration
public ObservableCollection<AttachmentParameterItemViewModel> ValueList { get; set; }
Property Value
Type | Description |
---|---|
ObservableCollection<AttachmentParameterItemViewModel> |
ValueOptions
Gets a list of selection options.
Declaration
public ObservableCollection<AttachmentParameterItemViewModel> ValueOptions { get; }
Property Value
Type | Description |
---|---|
ObservableCollection<AttachmentParameterItemViewModel> |
ValueType
Gets the system type for the value for this attachment parameter.
Declaration
public Type ValueType { get; }
Property Value
Type | Description |
---|---|
Type |
Events
View SourceParameterUpdated
Handler for when an attachment parameter is updated.
Declaration
public event PropertyChangedEventHandler ParameterUpdated
Event Type
Type | Description |
---|---|
PropertyChangedEventHandler |