using System.Collections.Generic; using RosettaUI.Reactive; namespace RosettaUI { public abstract class OpenCloseBaseElement : ElementGroupWithHeader { public abstract ReactiveProperty IsOpenRx { get; } public virtual bool IsOpen { get => IsOpenRx.Value; set => IsOpenRx.Value = value; } protected OpenCloseBaseElement(Element header, IEnumerable contents) :base(header, contents) { } } }