Class BasePresenter
Base class of DataPresenter and SimplePresenter.
Inherited Members
Namespace: DevZest.Data.Presenters
Assembly: DevZest.Data.WPF.dll
Syntax
public abstract class BasePresenter : ScalarContainer.IOwner
Constructors
| Name | Description |
|---|---|
| BasePresenter() | Initializes a new instance of BasePresenter class. |
Properties
| Name | Description |
|---|---|
| CanSubmitInput | Determines whether data input can be submitted without any validation error. |
| IsMounted | Gets a value indicates whether this presenter is mounted. |
| ScalarContainer | Gets the container for all scalar values. |
| ScalarValidation | Gets an object which contains the scalar data validation logic. |
| Template | Gets the Template associated with this presenter. |
Methods
| Name | Description |
|---|---|
| ConfirmEndEditScalars() | Override this method to let the user to confirm ending editing mode for scalar data. |
| DetachView() | Detaches this presenter from the view. |
| FormatFaultMessage(AsyncValidator) | Formats an error message for failed async validator execution. |
| InvalidateMeasure() | Invalidates the measurement state (layout) for the view. |
| InvalidateView() | Invalidates the rendering of the view. |
| NewLinkedScalar<T>(Func<T>, Action<T>, IEqualityComparer<T>) | Creates a new strongly typed scalar data which can be used as data binding source, from existing getter and setter. |
| NewLinkedScalar<T>(String, IEqualityComparer<T>) | Creates a new strongly typed scalar data which can be used as data binding source, from exising property or field . |
| NewScalar<T>(T, IEqualityComparer<T>) | Creates a new strongly typed scalar data which can be used as data binding source. |
| OnEdit(Scalar) | Invoked when scalar data is being edited. |
| OnMounted(BasePresenter.MountEventArgs) | Raises Mounted event. |
| OnValueChanged(IScalars) | Invoked when the scalar data value is changed. |
| OnViewChanged() | Raises ViewChanged event. |
| OnViewInvalidated() | Raises ViewInvalidated event. |
| OnViewInvalidating() | Raises ViewInvalidating event. |
| OnViewRefreshed() | Raises ViewRefreshed event. |
| OnViewRefreshing() | Raises ViewRefreshing event. |
| QueryEndEditScalars() | Invoked before ending editing mode for scalar data. |
| ResumeInvalidateView() | Resumes the usual view rendering. |
| SubmitInput(Boolean) | Tries to submit data input with validation. |
| SuspendInvalidateView() | Temporarily suspends the view rendering. |
| ValidateScalars(IScalarValidationErrors) | Performs custom scalar data validation, typically cross multiple Scalar<T> objects. |
Events
| Name | Description |
|---|---|
| Mounted | Occurs when this presenter is mounted. |
| 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. |