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