Class ViewModelSelectionBlade<TEntity>
Class ViewModelDialogSelection.
Implements the
Implements
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo
Inherited Members
Namespace: ISynergy.Framework.Mvvm.ViewModels
Assembly: ISynergy.Framework.Mvvm.dll
Syntax
public class ViewModelSelectionBlade<TEntity> : ViewModelBlade<List<TEntity>>, IViewModelBlade, IViewModel, IObservableClass, IBindable, ICleanup, ISelectionViewModel
Type Parameters
| Name | Description |
|---|---|
| TEntity |
Constructors
View SourceViewModelSelectionBlade(IContext, IBaseCommonServices, ILogger, IEnumerable<TEntity>, IEnumerable<TEntity>, SelectionModes, Boolean)
Initializes a new instance of the ViewModelSelectionDialog<TEntity> class.
Declaration
public ViewModelSelectionBlade(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. |
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.ViewModelBlade<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.ViewModelBlade<List<TEntity>>.SubmitAsync(List<TEntity>, System.Boolean)
Implements
INotifyPropertyChanged
IDisposable
IDataErrorInfo
INotifyDataErrorInfo