Namespace: Semata.ControlsCLR
Class: SelectorDetailSource
Construct a new instance of SelectorDetailSource.
When cancelling edits, displays a dialog asking if ok to cancel.
public SelectorDetailSource(object source, Func<IEditableData> creator, Func<object, IEditableData> getDetailData, Func<IEditableData, bool> isOkToSave, EditableDataManager.EditingMode mode)
Parameters
Type | Name | Description |
object | source | An object can provide an ICollectionView. |
Func<IEditableData> | creator | A delegate that returns an IEditableData. |
Func<object, IEditableData> | getDetailData | A delegate that, when passed an object, returns an IEditableData based on that object. |
Func<IEditableData, bool> | isOkToSave | A delegate that, when passed an object implenting IEditableData, returns true if it is ok to save that object. |
EditableDataManager.EditingMode | mode | The editing mode. |