Class SearchViewModel
Search viewmodel
Inheritance
System.Object
SearchViewModel
Namespace: Simplic.Framework.DBUI
Assembly: Simplic.Framework.DBUI.dll
Syntax
public class SearchViewModel : ViewModelBase
Constructors
| Improve this Doc View SourceSearchViewModel(Search, Boolean, Boolean)
Initializew new viewmodel instance
Declaration
public SearchViewModel(Search search, bool isFulltextSearchEnabled, bool createEmptyConfiguration = false)
Parameters
| Type | Name | Description |
|---|---|---|
| Search | search | Search instance |
| System.Boolean | isFulltextSearchEnabled | |
| System.Boolean | createEmptyConfiguration | Create an empty configuration, if the list of configurations is empty |
Properties
| Improve this Doc View SourceAddIcon
Gets the add icon
Declaration
public ImageSource AddIcon { get; }
Property Value
| Type | Description |
|---|---|
| ImageSource |
AddNewGridSearchConfigurationCommand
Gets or sets the new search configuration
Declaration
public System.Windows.Input.ICommand AddNewGridSearchConfigurationCommand { get; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
AddNewGroupCommand
Gets or sets the group add comand
Declaration
public System.Windows.Input.ICommand AddNewGroupCommand { get; }
Property Value
| Type | Description |
|---|---|
| System.Windows.Input.ICommand |
Configurations
Gets or sets all configurations
Declaration
public ObservableCollection<SearchConfigurationViewModel> Configurations { get; set; }
Property Value
| Type | Description |
|---|---|
| ObservableCollection<SearchConfigurationViewModel> |
FulltextSearchVisibility
Gets or sets the fulltext visibility
Declaration
public Visibility FulltextSearchVisibility { get; }
Property Value
| Type | Description |
|---|---|
| Visibility |
FulltextShowDirectInput
Gets or sets whether to show the fulltext search as direct input or not.
Declaration
public bool FulltextShowDirectInput { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsFulltextSearchEnabled
Gets or sets if the full text search is enabled
Declaration
public bool IsFulltextSearchEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
IsSaved
Gets or sets whether the viewmodel was saved
Declaration
public bool IsSaved { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Model
Gets the api model
Declaration
public Search Model { get; }
Property Value
| Type | Description |
|---|---|
| Search |
SelectedSearch
Gets or sets the selected search configuration
Declaration
public SearchConfigurationViewModel SelectedSearch { get; set; }
Property Value
| Type | Description |
|---|---|
| SearchConfigurationViewModel |
Methods
| Improve this Doc View SourceOnAddNewGroupCommand(Object)
Add new group
Declaration
public void OnAddNewGroupCommand(object commandParameter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | commandParameter |
OnAddNewSearchConfigurationCommand(Object)
Add new search configuration
Declaration
public void OnAddNewSearchConfigurationCommand(object commandParameter = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | commandParameter |
OnDelete()
Remove currently selected configuration
Declaration
public void OnDelete()
OnSave()
Save configuration
Declaration
public bool OnSave()
Returns
| Type | Description |
|---|---|
| System.Boolean |