protected override void AttachCore() { Left.Attach(); if (!Left.Value) { Right.Attach(); } }
protected override bool GetValue() { if (Left.Value) { return(true); } if (!Right.IsAttached) { Right.Attach(); } return(Right.Value); }
protected override void LeftChanged(object sender, ValueChangedEventArgs e) { if (!IsAttached) { return; } if (Left.Value) { Right.Detach(); } else { Right.Attach(); } Refresh(); }
internal override void Attach(ElementStyle node) { base.Attach(node); if (Left != null) { Left.Attach(node, this, "left"); } if (Top != null) { Top.Attach(node, this, "top"); } if (Right != null) { Right.Attach(node, this, "right"); } if (Bottom != null) { Bottom.Attach(node, this, "bottom"); } }