Interface IDataPresenter
Contains presentation logic for scalar data and DataSet.
Namespace: DevZest.Data.Presenters
Assembly: DevZest.Data.WPF.dll
Syntax
public interface IDataPresenter : IService
Properties
Name | Description |
---|---|
CanInsert | Gets a value inidicates whether new row can be inserted. |
CanSubmitInput | Determines whether data input can be submitted without any validation error. |
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. |
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. |
ScalarContainer | Gets the container for all scalar values. |
ScalarValidation | Gets an object which contains the scalar data validation logic. |
Scrollable | Gets the object that contains layout scrolling logic. |
SelectedRows | Gets the collection of selected rows. |
Template | Gets the Template associated with this presenter. |
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. |
DetachView() | Detaches this presenter from the view. |
GetService<T>(Boolean) | Gets the service. |
InvalidateMeasure() | Invalidates the measurement state (layout) for the view. |
InvalidateView() | Invalidates the rendering of the view. |
ResumeInvalidateView() | Resumes the usual view rendering. |
Select(RowPresenter, SelectionMode, Boolean, Action) | Selects specified RowPresenter. |
Select(RowPresenter[]) | Selects multiple rows. |
SubmitInput(Boolean) | Tries to submit data input with validation. |
SuspendInvalidateView() | Temporarily suspends the view rendering. |
Events
Name | Description |
---|---|
ViewChanged | Occurs when the view has been changed. |
ViewInvalidated | Occurs after view is invalidated. |
ViewInvalidating | Occurs before view is invalidating. |
ViewRefreshed | Occurs after view is refreshed. |
ViewRefreshing | Occurs before view is refreshing. |