Class ViewModelSelectionDialog<TEntity>
Class ViewModelDialogSelection.
Implements the
Implements
IViewModelDialog<List<TEntity>>
IViewModelSelectedItem<List<TEntity>>
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo
Inherited Members
Namespace: ISynergy.Framework.Mvvm.ViewModels
Assembly: ISynergy.Framework.Mvvm.dll
Syntax
public class ViewModelSelectionDialog<TEntity> : ViewModelDialog<List<TEntity>>, IViewModelDialog<List<TEntity>>, IViewModelSelectedItem<List<TEntity>>, IViewModel, IObservableClass, IBindable, ICleanup, ISelectionViewModel
Type Parameters
Name | Description |
---|---|
TEntity |
Constructors
View SourceViewModelSelectionDialog(IContext, IBaseCommonServices, ILogger, IEnumerable<TEntity>, IEnumerable<TEntity>, SelectionModes, Boolean)
Initializes a new instance of the ViewModelSelectionDialog<TEntity> class.
Declaration
public ViewModelSelectionDialog(IContext context, IBaseCommonServices commonServices, ILogger logger, IEnumerable<TEntity> items, IEnumerable<TEntity> selectedItems, SelectionModes selectionMode = default(SelectionModes), bool automaticValidation = false)
Parameters
Type | Name | Description |
---|---|---|
IContext | context | The context. |
IBaseCommonServices | commonServices | The common services. |
ILogger | logger | The logger factory. |
IEnumerable<TEntity> | items | The items. |
IEnumerable<TEntity> | selectedItems | The selected items. |
SelectionModes | selectionMode | The selection mode. |
System.Boolean | automaticValidation |
Properties
View SourceItems
Gets or sets the Item property value.
Declaration
public ObservableCollection<TEntity> Items { get; set; }
Property Value
Type | Description |
---|---|
ObservableCollection<TEntity> | The items. |
Query
Gets or sets the Query property value.
Declaration
public string Query { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RefreshCommand
Gets or sets the refresh command.
Declaration
public AsyncRelayCommand<string> RefreshCommand { get; }
Property Value
Type | Description |
---|---|
AsyncRelayCommand<System.String> | The refresh command. |
SelectedItems
Gets or sets the SelectedItems property value.
Declaration
public List<object> SelectedItems { get; set; }
Property Value
Type | Description |
---|---|
List<System.Object> |
SelectionMode
Gets or sets the SelectionMode property value.
Declaration
public SelectionModes SelectionMode { get; set; }
Property Value
Type | Description |
---|---|
SelectionModes | The selection mode. |
Title
Gets the title.
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
System.String | The title. |
Overrides
Methods
View SourceCleanup()
Declaration
public override void Cleanup()
Overrides
ISynergy.Framework.Mvvm.ViewModels.ViewModelDialog<List<TEntity>>.Cleanup()
View Source
QueryItemsAsync(String)
Queries the items.
Declaration
protected virtual Task QueryItemsAsync(string query)
Parameters
Type | Name | Description |
---|---|---|
System.String | query | Query parameter. |
Returns
Type | Description |
---|---|
Task |
SubmitAsync(List<TEntity>, Boolean)
Submits selection
Declaration
public override Task SubmitAsync(List<TEntity> e, bool validateUnderlayingProperties = true)
Parameters
Type | Name | Description |
---|---|---|
List<TEntity> | e | |
System.Boolean | validateUnderlayingProperties |
Returns
Type | Description |
---|---|
Task |
Overrides
ISynergy.Framework.Mvvm.ViewModels.ViewModelDialog<List<TEntity>>.SubmitAsync(List<TEntity>, System.Boolean)
Implements
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo