Class DataPresenter
Base class to contain presentation logic for scalar data and DataSet.
Inherited Members
Namespace: DevZest.Data.Presenters
Assembly: DevZest.Data.WPF.dll
Syntax
public abstract class DataPresenter : BasePresenter, ScalarContainer.IOwner, IDataPresenter, IService
Constructors
| Name | Description |
|---|---|
| DataPresenter() | Initializes a new instance of DataPresenter class. |
Properties
| Name | Description |
|---|---|
| CanInsert | Gets a value inidicates whether new row can be inserted. |
| CanMatchRow | Gets a value indicates whether underlying rows can be matched by primary key value(s). |
| CurrentContainerView | Gets the current ContainerView, which is either RowView or BlockView. |
| CurrentRow | Gets or sets the current RowPresenter. |
| DataSet | Gets the source DataSet. |
| EditingRow | Gets the current RowPresenter which is in edit mode. |
| FlowRepeatCount | Gets the value that specifies how many rows will flow in BlockView first, then expand afterwards. |
| InsertingRow | Gets the current RowPresenter which is in inserting mode. |
| IsEditing | Gets a value indicates whether current row is in edit mode. |
| IsInserting | Gets a value indicates whether current row is in inserting mode. |
| IsRecursive | Gets a value indicates the underlying rows are recursive tree structure. |
| Item[DataRow] | Gets the RowPresenter for specified DataRow. |
| LayoutOrientation | Gets the layout orientation that rows will be presented repeatedly. |
| OrderBy | Gets or sets the comparer to sort the rows. |
| Rows | Gets the collection RowPresenter objects. |
| RowValidation | Gets the object that contains row validation logic. |
| Scrollable | Gets the object that contains layout scrolling logic. |
| SelectedDataRows | Gets the collection of selected DataRows. |
| SelectedRows | Gets the collection of selected rows. |
| View | Gets the DataView that is attached to this DataPresenter. |
| VirtualRow | Gets the virtual row for inserting indication. |
| Where | Gets or sets the condition to filter the rows. |
Methods
| Name | Description |
|---|---|
| Apply(Predicate<DataRow>, IComparer<DataRow>) | Applies filtering condition and sorting comparer. |
| BeginInsertAfter(RowPresenter) | Begins inserting new row after specified row. |
| BeginInsertBefore(RowPresenter) | Begins inserting new row before specified row. |
| ConfirmDelete() | Confirms row deletion. |
| ConfirmEndEdit() | Confirms end of editing mode. |
| ExistsService<T>() | Determines whether service exists. |
| GetSerializer(Column) | Gets the serializer for specified Column. |
| GetService<T>(Boolean) | Gets the service. |
| HasChildren(RowPresenter) | Gets a value indicates whether specified RowPresenter has child rows. |
| Match(RowPresenter, Boolean) | Matches underlying rows with provided RowPresenter from other data presenter. |
| Match(IReadOnlyList<Column>, DataRow) | Matches underlying rows with provided primary key value(s) from other DataSet. |
| OnCurrentRowChanged(RowPresenter) | Called when current row changes. |
| OnEdit(Column) | Invoked when column is being edit. |
| OnIsSelectedChanged(RowPresenter) | Invoked when selection status of RowPresenter changed. |
| PredictSelectionMode(MouseButton, RowPresenter) | Predicates the selection mode by mouse button click. |
| QueryCancelEdit() | Determines whether editing mode can be cancelled. |
| QueryEndEdit() | Determines whether editing mode can be ended. |
| Select(RowPresenter, SelectionMode, Boolean, Action) | Selects specified RowPresenter. |
| Select(RowPresenter, MouseButton, Action) | Selects specified RowPresenter by mouse button click. |
| Select(RowPresenter[]) | Selects multiple rows. |
| SubmitInput(Boolean) | |
| ToggleExpandState(RowPresenter) | Toggles the expand state for specified RowPresenter. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IService.DataPresenter | |
| IService.Initialize(DataPresenter) |