Namespace: Semata.ControlsCLR
Class: SelectorDetailSource
Construct a new instance of SelectorDetailSource.
When the selected object changes, and there are edits pending on the current object, displays a dialog asking if ok to save.
When cancelling edits, displays a dialog asking if ok to cancel.
public SelectorDetailSource(object source, Func<IEditableData> creator, Func<object, IEditableData> getDetailData, 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. |
EditableDataManager.EditingMode | mode | The editing mode. |