private void Cleanup(IProxyRowInput proxyRowInput) { if (proxyRowInput == null) { return; } if (EditorElement != null) { proxyRowInput.EditorBinding.Cleanup(EditorElement); EditorElement = null; } else if (InertElement != null) { proxyRowInput.InertBinding.Cleanup(InertElement); InertElement = null; } }
private void Setup(IProxyRowInput proxyRowInput, RowPresenter rowPresenter) { if (proxyRowInput == null) { return; } if (IsEditing) { InertElement = null; EditorElement = GenerateElement(proxyRowInput.EditorBinding, rowPresenter); DataPresenter?.GetService <IChildInitializer>()?.InitializeEditorElement(this); } else { EditorElement = null; InertElement = GenerateElement(proxyRowInput.InertBinding, rowPresenter); DataPresenter?.GetService <IChildInitializer>()?.InitializeInertElement(this); } InvalidateMeasure(); }