public virtual void SetVisibility(bool state) { InputNode?.SetVisibility(state); OutputNode?.SetVisibility(state); if (Content != null) { Content.Visibility = state ? Visibility.Visible : Visibility.Collapsed; } }