Show / Hide Table of Contents

Class DataPresenter

Base class to contain presentation logic for scalar data and DataSet.

Inheritance
System.Object
BasePresenter
DataPresenter
DataPresenter<T>
Implements
IDataPresenter
IService
Inherited Members
BasePresenter.ViewInvalidating
BasePresenter.ViewInvalidated
BasePresenter.ViewRefreshing
BasePresenter.ViewRefreshed
BasePresenter.DetachView()
BasePresenter.ViewChanged
BasePresenter.OnViewChanged()
BasePresenter.OnViewInvalidating()
BasePresenter.OnViewInvalidated()
BasePresenter.OnViewRefreshing()
BasePresenter.OnViewRefreshed()
BasePresenter.IsMounted
BasePresenter.Mounted
BasePresenter.OnMounted(BasePresenter.MountEventArgs)
BasePresenter.Template
BasePresenter.ScalarContainer
BasePresenter.InvalidateView()
BasePresenter.SuspendInvalidateView()
BasePresenter.ResumeInvalidateView()
BasePresenter.ScalarValidation
BasePresenter.NewScalar<T>(T, IEqualityComparer<T>)
BasePresenter.NewLinkedScalar<T>(String, IEqualityComparer<T>)
BasePresenter.NewLinkedScalar<T>(Func<T>, Action<T>, IEqualityComparer<T>)
BasePresenter.ValidateScalars(IScalarValidationErrors)
BasePresenter.CanSubmitInput
BasePresenter.InvalidateMeasure()
BasePresenter.OnValueChanged(IScalars)
BasePresenter.QueryEndEditScalars()
BasePresenter.ConfirmEndEditScalars()
BasePresenter.OnEdit(Scalar)
BasePresenter.FormatFaultMessage(AsyncValidator)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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)

Extension Methods

BindingFactory.BindToCheckBox(DataPresenter)
BindingFactory.BindTo<T>(BasePresenter)
BindingFactory.BindToGridHeader(DataPresenter)
BindingFactory.BindToValidationErrorsControl(BasePresenter)
BindingFactory.BindToTextBlock(BasePresenter, String)
ServiceManager.GetRegisteredService<T>(DataPresenter, Boolean)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest